﻿<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>百度_全体</title>
    <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon">
    <link rel="stylesheet" href="./index.css?v1.2.7">
    <style>
        input.sm{
            height: 22px;
            line-height: 22px;
            width: 35%;
            padding: 0;
            margin-top: 3px;
            margin-right: 3px;
        }
        input.sm2{
            height: 22px;
            line-height: 22px;
            width: 50px;
            padding: 0;
            margin-top: 3px;
            margin-right: 3px;
        }
        .flexL {
            align-items: center;
            font-size: 12px;
        }
        .open-daoju {
            display: none;
        }
        #danshua .zz_content>div{
            width: 25%;
            height: 20px;
        }
    </style>
</head>
<body>
    <div id="box">
        <div id="task_name">任务名称</div>
        <div id="hideBtnBox">
            <button type="button" onclick="sfn2017()" style="margin-right: 0;">花厅</button>
            <button type="button" onclick="sfn20170()" class="btn-huan">切</button>
            <button type="button" onclick="sfn2011()" style="margin-right: 0;">种子</button>
            <button type="button" onclick="sfn20110()" class="btn-huan">切</button>
            <button type="button" onclick="sfn2006()" style="margin-right: 0;">道具</button>
            <button type="button" onclick="sfn20060()" class="btn-huan">切</button>
            <button type="button" onclick="sfn2013()" style="margin-right: 0;">材料</button>
            <button type="button" onclick="sfn20130()" class="btn-huan">切</button>
            <button type="button" onclick="sfn00001()">星座花兑换</button>
            <button type="button" onclick="sfn2012()">种子商城</button>
            <button type="button" onclick="sfn2010()">道具商城</button>
            <button type="button" onclick="sfn2016()">花架</button>
            <button type="button" onclick="sfn1003()">悬浮窗</button>
            <button type="button" onclick="sfn6007()" id="hs_isauto_buy">自动买花0</button>
            <button type="button" onclick="sfn80038(true)">买铂金花剪</button>
            <button type="button" onclick="sfn80039(true)">买黄金花剪</button>
            <button type="button" onclick="sfn800381(true)">五一画册兑换</button>
            <!-- <button type="button" onclick="sfn3010()">使用15天卡</button> -->
            <button type="button" onclick="sfn3014()">化肥1使用</button>
            <button type="button" onclick="sfn3015()">化肥10使用</button>
            <button type="button" onclick="sfn30151()">化肥10购买</button>
            <!-- <button type="button" onclick="sfn40043()">清空金银花(单)</button> -->
            <!-- <button type="button" onclick="sfn4009()" >兑换材料(全)</button> -->
            <!-- <button type="button" onclick="sfn4005('', '')">回收材料(单)</button> -->
            <!-- <button type="button" onclick="sfn4006()">回收材料(全)</button> -->
            <!-- <button type="button" onclick="sfn3002()">一键采摘</button>
            <button type="button" onclick="sfn3008()">一键买花</button> -->
            <!-- <button type="button" onclick="sfn3013()">升级花盆</button> -->
            <button type="button" onclick="sfn50005('cj35338hd5')">批量扔染色剂</button>
            <br />
            <button type="button" onclick="sfn50005('2m81730fst')">批量扔鱼鳞石</button>
            <button type="button" onclick="sfn50005('95h03302u1')">批量扔麻线球</button>
            <br />
            <button type="button" onclick="sfn50003()">批量扔魔芙石</button>
            <button type="button" onclick="sfn50005('fzz0730riu')">批量扔孔雀石</button>
            <br />
            <button type="button" onclick="sfn50004()">批量扔金绣球和粉团花</button>
            <br />
            <button type="button" onclick="sfn50006()">批量扔鸢尾花</button>
            <button type="button" onclick="sfn50007('j3o50155xc5')">批量扔银绣球</button>
            <br />
            <button type="button" onclick="sfn50001('l2r2671kf')">批量合银绣球</button>
            <button type="button" onclick="sfn50001('vnu4671yd')">批量合金绣球</button>
            <br />
            <button type="button" onclick="sfn50001('xly517pye')">批量合银鸢尾</button>
            <button type="button" onclick="sfn50001('e5_717t4k')">批量合金鸢尾</button>
            <br />
            <button type="button" onclick="sfn50001('roy524aer')">批量合神树种</button>
            <button type="button" onclick="sfn50008()">扔星座花999</button>
            <br />
            <button type="button" onclick="sfn50002('11x71556kg')">批量买绣球种子</button>
            <button type="button" onclick="sfn0003(true)">批量喂肥料</button>
            <br />
            <button type="button" onclick="sfn00061()">展开</button>
            <div id="open-daoju" class="open-daoju">
                <button type="button" onclick="sfn800382(true)">梦幻字母礼盒</button>
                <button type="button" onclick="sfn9003()">消耗金币</button>
                <button type="button" onclick="sfn0004(true)">一键注册5</button>
                <button type="button" onclick="sfn80032()">手动赠送</button>
                <button type="button" onclick="sfn800321()">自动赠送</button>
                <button type="button" onclick="sfn8001()">花苗(单)</button>
                <button type="button" onclick="sfn8002()">花苗(全)</button>
                <button type="button" onclick="sfn80034(true)">买流光种子</button>
                <button type="button" onclick="sfn3005()">每日签到</button>
                <button type="button" onclick="sfn3006()">购买赐福</button>
                <button type="button" onclick="sfn3009()">购买一键卡</button>
                <button type="button" onclick="sfn3011()">添加花盆</button>
                <button type="button" onclick="sfn3012()">添加水盆</button>
                <button type="button" onclick="sfn1004()">购买种子ID</button>
                <button type="button" onclick="sfn1005()">购买水值ID</button>
                <button type="button" onclick="sfn10041()">收花种子ID</button>
                <button type="button" onclick="sfn10051()">收花水值ID</button>
                <button type="button" onclick="sfn40072(true)">快速合成</button>
                <div class="flex">
                    <input class="sm" type="text" placeholder="龙葵数量" id="kai_1">
                    <button type="button" onclick="sfn0006('dzviuktnolwu_tnehceh02e', 'kai_1', 0)">十连开</button>
                </div>
                <div class="flex">
                    <input class="sm" type="text" placeholder="孔雀石数量" id="kai_2">
                    <button type="button" onclick="sfn0006('2tgihseuqtnokwu_tnehcehhaw', 'kai_2', 0)">十连开</button>
                </div>
                <div class="flex">
                    <input class="sm" type="text" placeholder="亚麻数量" id="kai_3">
                    <button type="button" onclick="sfn0006('i_jamaywu_tnehceha_a', 'kai_3', 0)">十连开</button>
                </div>
                <div class="flex">
                    <input class="sm" type="text" placeholder="含羞草数量" id="kai_4">
                    <button type="button" onclick="sfn0006('ephoacuixnahwu_tnehceh38r', 'kai_4', 0)">十连开</button>
                </div>
                <div class="flex">
                    <input class="sm" type="text" placeholder="红枫数量" id="kai_5">
                    <button type="button" onclick="sfn0006('zf9tneftnohwu_tnehceh7pa', 'kai_5', 0)">十连开</button>
                </div>
            </div>
            <div class="flex flexL">
                <span>好友:</span>
                <input class="sm2" type="text" placeholder="好友ID" id="z_id">
                <button type="button" onclick="sfn00071('1263966')">主号</button>
            </div>
            <div class="flex flexL">
                <span>红绣:</span>
                <input class="sm2" maxLength="3" type="text" placeholder="红绣球" id="zen_1">
                <button type="button" onclick="sfn0007('hr277155src', 'zen_1')">赠送</button>
            </div>
            <div class="flex flexL">
                <span>白绣:</span>
                <input class="sm2" maxLength="3" type="text" placeholder="白绣球" id="zen_2">
                <button type="button" onclick="sfn0007('tqh57155cbz', 'zen_2')">赠送</button>
            </div>
            <div class="flex flexL">
                <span>黄绣:</span>
                <input class="sm2" maxLength="3" type="text" placeholder="黄绣球" id="zen_3">
                <button type="button" onclick="sfn0007('8ao07155_lx', 'zen_3')">赠送</button>
            </div>
            <div class="flex flexL">
                <span>粉绣:</span>
                <input class="sm2" maxLength="3" type="text" placeholder="粉绣球" id="zen_4">
                <button type="button" onclick="sfn0007('bcm8715593p', 'zen_4')" style="margin-right: 5px;">赠送</button>
                <button type="button" onclick="sfn00073()">整套999</button>
            </div>
            <div class="flex flexL">
                <span>银绣:</span>
                <input class="sm2" maxLength="3" type="text" placeholder="银绣球" id="zen_11">
                <button type="button" onclick="sfn0007('pst50155f1e', 'zen_11')" style="margin-right: 5px;">赠送</button>
                <button type="button" onclick="sfn00074('pst50155f1e')">整套999</button>
            </div>
            <div class="flex flexL">
                <span>橙树:</span>
                <input class="sm2" maxLength="3" type="text" placeholder="橙树枝" id="zen_5">
                <button type="button" onclick="sfn0007('cfk72925k5w', 'zen_5')">赠送</button>
            </div>
            <div class="flex flexL">
                <span>紫树:</span>
                <input class="sm2" maxLength="3" type="text" placeholder="紫树枝" id="zen_6">
                <button type="button" onclick="sfn0007('xj582925red', 'zen_6')">赠送</button>
            </div>
            <div class="flex flexL">
                <span>白树:</span>
                <input class="sm2" maxLength="3" type="text" placeholder="白树枝" id="zen_7">
                <button type="button" onclick="sfn0007('edn529259_1', 'zen_7')">赠送</button>
            </div>
            <div class="flex flexL">
                <span>蓝树:</span>
                <input class="sm2" maxLength="3" type="text" placeholder="蓝树枝" id="zen_8">
                <button type="button" onclick="sfn0007('18312925pom', 'zen_8')">赠送</button>
            </div>
            <div class="flex flexL">
                <span>青树:</span>
                <input class="sm2" maxLength="3" type="text" placeholder="青树枝" id="zen_9">
                <button type="button" onclick="sfn0007('ugl02925pbp', 'zen_9')" style="margin-right: 5px;">赠送</button>
                <button type="button" onclick="sfn00072()">整套900</button>
            </div>
            <div class="flex flexL">
                <span>流光:</span>
                <input class="sm2" maxLength="3" type="text" placeholder="流光" id="zen_10">
                <button type="button" onclick="sfn0007('xnj59495e5o', 'zen_10')" style="margin-right: 5px;">赠送</button>
                <button type="button" onclick="sfn00074('xnj59495e5o')">整套999</button>
            </div>
            <div>
                <div style="display: flex;align-items: center;justify-content: space-between;">
                    <label style="font-size: 10px;display: flex;align-items: center;padding: 3px 0;cursor: pointer;"><input type="radio" name="radioRanse" value="318" />白绣</label>
                    <label style="font-size: 10px;display: flex;align-items: center;padding: 3px 0;cursor: pointer;"><input type="radio" name="radioRanse" value="319" />红绣</label>
                    <label style="font-size: 10px;display: flex;align-items: center;padding: 3px 0;cursor: pointer;"><input type="radio" name="radioRanse" value="320" />黄绣</label>
                    <label style="font-size: 10px;display: flex;align-items: center;padding: 3px 0;cursor: pointer;"><input type="radio" name="radioRanse" value="321" />粉绣</label>
                </div>
                <button type="button" onclick="sfn0008()">染色</button>
                <button type="button" onclick="sfn20170()">切</button>
                <button type="button" onclick="sfn00081('290')">染白色鸢尾</button>
            </div>
        </div>
        <div class="btn-grounp">
            <span id="pkid"></span>
            <span id="indexid">0</span>
            <span id="shuaMax">次数:0</span>
            <span id="accountindexTitle">下标:</span>
            <span id="accountindex">0</span>
            <button type="button" onclick="sfn6001(30)" class="sm zhedie3">刷0.5</button>
            <button type="button" onclick="sfn6002(30)" class="sm zhedie3">刷1.0</button>
            <button type="button" onclick="sfn6003(30)" class="sm zhedie3">刷3.0</button>
            <button type="button" onclick="sfn6004(30)" class="sm zhedie3">刷10.0</button>
            <button type="button" onclick="sfn6005(30)" class="sm zhedie3">超级</button>
            <button type="button" onclick="sfn1001()" class="sm">下标</button>
            <button type="button" onclick="sfn2002()" class="sm">换号</button>
            <button type="button" onclick="sfn0002()" class="sm">临时功能</button>
            <button type="button" onclick="sfn00072('1263966')">一套</button>
            <br class="zhedie3" />
            <button type="button" onclick="sfn1000()" class="zhedie3">首页</button>
            <button type="button" onclick="sfn1002()" class="zhedie3">换号</button>
            <!-- <button type="button" onclick="sfn80033()" id="shuawan_zengsong_id" class="zhedie3">赠送0</button> -->
            <button type="button" onclick="sfn80035()" class="zhedie3 xiaohao_model_id">小号0</button>
            <button type="button" onclick="sfn80037()" class="zhedie3 cangkun_model_id">仓库0</button>
            <button type="button" onclick="sfn6006()" id="shuawan_stop_huafei_id" class="zhedie3">刷停</button>
            <button type="button" onclick="sfn80040()" id="is_shua_huapen_id" class="zhedie3">单刷花盆0</button>
            <button type="button" onclick="sfn4008()" class="zhedie3">兑换</button>
            <button type="button" onclick="sfn00075('')">自动送树枝</button>
            <br />
            <button type="button" onclick="sfn2000()">初始</button>
            <button type="button" onclick="sfn2001(true)">花园</button>
            <button type="button" onclick="sfn2002()">换号</button>
            
            <button type="button" onclick="sfn80035()" class="zhedie5 xiaohao_model_id">小号0</button>
            <button type="button" onclick="sfn80037()" class="zhedie5 cangkun_model_id">仓库0</button>
            <button type="button" onclick="sfn4008()" class="zhedie5">兑换</button>
            <button type="button" onclick="sfn4001()" class="zhedie3">收花</button>
            <button type="button" onclick="sfn4002()" class="zhedie3">播种</button>
            <button type="button" onclick="sfn4003()" class="zhedie3">打理</button>
            <button type="button" onclick="sfn80042()" id="shua_jiaohua_id" class="zhedie3">浇花0</button>
            <button type="button" onclick="sfn10031()" style="color: red;font-weight: bold;">其它</button>
            <div id="zhedie">
                <button type="button" onclick="sfn2017()" style="margin-right: 0;">花厅</button>
                <button type="button" onclick="sfn20170()" class="btn-huan">切</button>
                <button type="button" onclick="sfn2011()" style="margin-right: 0;">种子</button>
                <button type="button" onclick="sfn20110()" class="btn-huan">切</button>
                <button type="button" onclick="sfn2006()" style="margin-right: 0;">道具</button>
                <button type="button" onclick="sfn20060()" class="btn-huan">切</button>
                <button type="button" onclick="sfn2013()" style="margin-right: 0;">材料</button>
                <button type="button" onclick="sfn20130()" class="btn-huan">切</button>
                <button type="button" onclick="sfn80036()" id="shua_guding_num_id" class="zhedie3">刷次0</button>
                <button type="button" onclick="sfn800361()" id="shua_xunhuan_num_id" class="zhedie3">循次0</button>
                <button type="button" onclick="sfn800362()" id="shua_renwu_num_id" class="zhedie3">任次0</button>
                <br />
                <button type="button" onclick="sfn2016()">花架</button>
                <button type="button" onclick="sfn30132()">升架</button>
                <button type="button" onclick="sfn30131()">升盆</button>
                <button type="button" onclick="sfn2014()">物品合成</button>
                <button type="button" onclick="sfn2015()">花朵合成</button>
                <button type="button" onclick="sfn40010()" class="zhedie3">花剪收花</button>
                <button type="button" onclick="sfn80041()" id="is_shua_huajian_id" class="zhedie3">自动花剪</button>
                <br />
                <button type="button" onclick="sfn4007()">合成(单)</button>
                <button type="button" onclick="sfn4004()">回收(单)</button>
                <button type="button" onclick="sfn40041()">清花(单)</button>
                <button type="button" onclick="sfn40073()">全合(单)</button>
                <button type="button" onclick="sfn7006()" style="color: red;font-weight: bold;">计算数量</button>
                <button type="button" onclick="sfn7002()" class="sm" style="color: red;font-weight: bold;">查看说明</button>
                <br />
                <button type="button" onclick="sfn50010(1)">单刷0.5</button>
                <button type="button" onclick="sfn50020(1)">单刷1</button>
                <button type="button" onclick="sfn50030(1)">单刷3</button>
                <button type="button" onclick="sfn50040(1)">单刷10</button>
                <button type="button" onclick="sfn50050()">超级</button>
                <button type="button" onclick="sfn7007()" class="sm">折叠/展开</button>
                <button type="button" onclick="sfn0005()" class="sm">单刷设置</button>
                <div id="zhedie2">
                    <button type="button" onclick="sfn6101(30)">刷花盆0.5</button>
                    <button type="button" onclick="sfn6102(30)">刷花盆1.0</button>
                    <button type="button" onclick="sfn6103(30)">刷花盆3.0</button>
                    <button type="button" onclick="sfn6104(30)">刷花盆10.0</button>
                    <button type="button" onclick="sfn6105(30)">超级花</button>
                    <button type="button" onclick="sfn6106()" id="shuawan_stop_huapen_id">刷完花盆停止</button>
                    <br />
                    <button type="button" onclick="sfn6201(30)">刷水盆0.5</button>
                    <button type="button" onclick="sfn6202(30)">刷水盆1.0</button>
                    <button type="button" onclick="sfn6203(30)">刷水盆3.0</button>
                    <button type="button" onclick="sfn6204(30)">刷水盆10.0</button>
                    <button type="button" onclick="sfn6205(30)">超级水</button>
                    <button type="button" onclick="sfn6206()" id="shuawan_stop_shuipen_id">刷完水盆停止</button>
                    <br />
                    <button type="button" onclick="sfn7001('j2b9335_x4', '300', true)" class="sm">梅花300</button>
                    <button type="button" onclick="sfn7001('3696335ocl', '300', true)" class="sm">桃花300</button>
                    <button type="button" onclick="sfn7001('hik7535mga', '500', true)" class="sm">兰花500</button>
                    <button type="button" onclick="sfn7001('td81535j8b', '500', true)" class="sm">樱花500</button>
                    <button type="button" onclick="sfn7001('h127735_gx', '500', true)" class="sm">百合500</button>
                    <button type="button" onclick="sfn7001('ydp80354tm', '200', true)" class="sm">郁金香200</button>
                    <button type="button" onclick="sfn7001('cx07835cij', '200', true)" class="sm">夜来香200</button>
                    <button type="button" onclick="sfn7001('wu99575xd0', '200', true)" class="sm">茉莉花200</button>
                    <button type="button" onclick="sfn7001('pmd755595n', '200', true)" class="sm">杜鹃花200</button>
                    <button type="button" onclick="sfn7001('hda71559zf', '200', true)" class="sm red">绣球200</button>
                    <button type="button" onclick="sfn7001('b_58355z6o', '200', true)" class="sm red">月季200</button>
                    <button type="button" onclick="sfn7001('ovx5337oov', '500', true)" class="sm">萍逢草500</button>
                    <button type="button" onclick="sfn7001('s8k13370ec', '500', true)" class="sm">水仙花500</button>
                    <button type="button" onclick="sfn7001('c400537vx6', '100', true)" class="sm">美人蕉100</button>
                    <button type="button" onclick="sfn7001('gcl5737u4b', '100', true)" class="sm">蝴蝶花100</button>
                    <button type="button" onclick="sfn7001('4ti243568h', '100', true)" class="sm">八仙花100</button>
                    <button type="button" onclick="sfn7001('7az0037q4r', '100', true)" class="sm">满江红100</button>
                    <button type="button" onclick="sfn7001('w6a3137am9', '100', true)" class="sm red">鸢尾100</button>
                    <br />
                    <button type="button" onclick="sfn7001('vsn907513d', '100', true)" class="sm">星星之火100</button>
                    <button type="button" onclick="sfn7001('ni883758hr', '100', true)" class="sm">心花怒放100</button>
                    <button type="button" onclick="sfn7001('meb8875i_q', '100', true)" class="sm">星光熠熠100</button>
                    <button type="button" onclick="sfn70012()" class="sm">一键←</button>
                </div>
            </div>
            <button type="button" onclick="window.location.reload()">刷新</button>
            <button type="button" onclick="window.location.href = './hs_token.html'">token</button>
            <!-- <button type="button" onclick="window.location.href = './hs1.html'">普通模式</button> -->
            <button type="button" onclick="sfn0001()" class="zhedie4">新初始化</button>
            <button id="xunhuan" type="button" onclick="sfn1006()" class="zhedie3">循环收花0</button>
            <button id="fenzhong" type="button" onclick="sfn1007()" class="zhedie3">成熟时长(分)：150</button>
            <div class="zhedie3">
                <button type="button" onclick="sfn9001()" id="nextTask">下次任务日</button>
                <button type="button" onclick="sfn9002()">下次收花</button>
                <span id="nextTime5"></span>,
                <span id="setInterval"></span>
            </div>
            <!-- <div class="accountindex">当前下标：</div> -->
            <div class="flex flexB">
                <button type="button" onclick="sfn7004()" class="sm">折叠/展开</button>
                <div class="nextTimeBox">
                    <div id="nextTime1"></div>
                    <div id="nextTime2"></div>
                </div>
            </div>
        </div>
        <div class="ifr">
            <iframe id="ifr" src="https://www.5iwapgame.com" frameborder="0"></iframe>
        </div>
        <div id="bozhong">
            <button type="button" onclick="sfn2004()">播种</button>
            <button type="button" onclick="sfn2009()">换号</button>
            <button type="button" onclick="sfn2007()">买种子</button>
            <button type="button" onclick="sfn2008()">买水植</button>
            <div class="jisuanhecheng">
                <input id="jisuanhechengInput1" type="text">
                <input id="jisuanhechengInput2" type="text">
                <span id="jisuanhechengNum"></span>
                <button type="button" onclick="sfn20151()">切</button>
            </div>
        </div>
        <div id="cailiao">
            <div class="zz_list">
                <div class="zz_content">
                    <div>请选择需要兑换的类型：</div>
                    <label>
                        <div class="input">
                            <div>8矿渣换莹石</div>
                            <div><input id="input8-1" class="cailiao-input" placeholder="数量" maxlength="3" /></div>
                        </div>
                    </label>
                    <label>
                        <div class="input">
                            <div>3竹条换树枝</div>
                            <div><input id="input8-2" class="cailiao-input" placeholder="数量" maxlength="3" /></div>
                        </div>
                    </label>
                    <label>
                        <div class="input">
                            <div>8树枝换龙葵</div>
                            <div><input id="input8-3" class="cailiao-input" placeholder="数量" maxlength="3" /></div>
                        </div>
                    </label>
                    <label>
                        <div class="input">
                            <div>8莹石换孔雀石</div>
                            <div><input id="input8-4" class="cailiao-input" placeholder="数量" maxlength="3" /></div>
                        </div>
                    </label>
                    <label>
                        <div class="input">
                            <div>5蔓草换亚麻</div>
                            <div><input id="input8-5" class="cailiao-input" placeholder="数量" maxlength="3" /></div>
                        </div>
                    </label>
                    <label>
                        <div class="input">
                            <div>10龙葵换魔矿石</div>
                            <div><input id="input8-6" class="cailiao-input" placeholder="数量" maxlength="3" /></div>
                        </div>
                    </label>
                    <label>
                        <div class="input">
                            <div>5孔雀石换芙蓉石</div>
                            <div><input id="input8-7" class="cailiao-input" placeholder="数量" maxlength="3" /></div>
                        </div>
                    </label>
                    <label>
                        <div class="input">
                            <div>8亚麻换麻线球</div>
                            <div><input id="input8-9" class="cailiao-input" placeholder="数量" maxlength="3" /></div>
                        </div>
                    </label>
                    <label>
                        <div class="input">
                            <div>8枫叶换四叶草</div>
                            <div><input id="input8-10" class="cailiao-input" placeholder="数量" maxlength="3" /></div>
                        </div>
                    </label>
                    <label>
                        <div class="input">
                            <div>8四叶草换红叶</div>
                            <div><input id="input8-11" class="cailiao-input" placeholder="数量" maxlength="3" /></div>
                        </div>
                    </label>
                    <label>
                        <div class="input">
                            <div>1麻线球换亚麻箱子</div>
                            <div><input id="input8-8" class="cailiao-input" placeholder="数量" maxlength="3" /></div>
                        </div>
                    </label>
                    <label>
                        <div class="input">
                            <div>1含羞草换红枫箱子</div>
                            <div><input id="input8-12" class="cailiao-input" placeholder="数量" maxlength="3" /></div>
                        </div>
                    </label>
                    <label>
                        <div class="input">
                            <div>1水晶石换龙葵箱子</div>
                            <div><input id="input8-13" class="cailiao-input" placeholder="数量" maxlength="3" /></div>
                        </div>
                    </label>
                    <label>
                        <div class="input">
                            <div>1鱼鳞石换含羞草箱子</div>
                            <div><input id="input8-14" class="cailiao-input" placeholder="数量" maxlength="3" /></div>
                        </div>
                    </label>
                    <label>
                        <div class="input">
                            <div>1鱼鳞石换孔雀石箱子</div>
                            <div><input id="input8-15" class="cailiao-input" placeholder="数量" maxlength="3" /></div>
                        </div>
                    </label>
                    <div>
                        <button type="button" onclick="sfn70081()">兑换含羞草</button>
                        <button type="button" onclick="sfn70082()">一键临时兑换</button>
                    </div>
                    <!-- <label>
                        <div class="input">
                            <div>请输入兑换<span id="cailiao_newname"></span>的数量：</div>
                            <input id="input7" type="number" placeholder="请输入兑换数量">
                        </div>
                    </label> -->
                    <!-- <div>需要的<span id="cailiao_name"></span>数量：<span id="cailiao_duihuan_num">0</span></div> -->
                </div>
                <div class="zz_btn">
                    <button type="button" onclick="sfn7003()">关闭</button>
                    <button type="button" onclick="sfn7008()">兑换</button>
                    <button type="button" onclick="sfn20130()">切</button>
                    <button type="button" onclick="sfn7009()">清空</button>
                </div>
            </div>
        </div>
    </div>
    <div id="modal">
        <div class="zz_list">
            <div class="zz_content">
                <div>【红色为推荐种植】</div>
                <!-- <div>野花：10分钟/90金币，每日限购:200个</div> -->
                <!-- <div>菊花：10分钟/180金币，每日限购:200个</div> -->
                <div>梅花(270)：15分钟/矿渣1</div>
                <div>桃花(360)：50分钟/蔓草1,矿渣1</div>
                <div>兰花(450)：1小时20分钟/蔓草1,矿渣1,竹条1</div>
                <div>樱花(540)：1小时40分钟/蔓草1,矿渣1,竹条1</div>
                <div>百合(720)：2小时30分钟/蔓草2,莹石1,树枝1,矿渣1</div>
                <div style="color: red;">郁金香(1080)：4小时10分钟/蔓草2,莹石3,树枝3,矿渣1</div>
                <div style="color: red;">夜来香(1400)：5小时/蔓草2,莹石3,树枝3,矿渣1</div>
                <div>心花怒放(1600)：5小时50分钟/莹石2,四叶草2,枫叶2,龙葵2,亚麻2,孔雀石2【限购100】</div>
                <div>星光熠熠(1800)：10小时/魔矿石、红枫、芙蓉石、孔雀石、龙葵、四叶草【限购100】</div>
                <div>茉莉花(1500)：10小时/蔓草2,莹石3,树枝3</div>
                <div>杜鹃花(1600)：13小时30分钟/亚麻2,孔雀石3,龙葵,莹石1</div>
                <div style="font-weight: bold;">下面是水生植物</div>
                <div style="color: red;">萍逢草(270)：2小时/枫叶1,矿渣1,竹条1</div>
                <div>水仙花(720)：2小时30分钟/枫叶1,矿渣1,竹条1</div>
                <div>美人蕉(1620)：5小时30分钟/枫叶2,莹石1,树枝1</div>
                <div>星星之火(1600)：5小时/四叶草2,枫叶2,龙葵2,亚麻2,孔雀石2【限购100】</div>
                <div>蝴蝶花(2500)：9小时10分钟/莹石2,树枝2</div>
                <div style="color: red;">八仙花(2900)：15小时/莹石3,树枝3,四叶草2,矿渣1</div>
                <div style="color: red;">满江红(2900)：15小时/红叶2,孔雀石2,龙葵3,莹石1</div>
            </div>
            <div class="zz_btn">
                <button type="button" onclick="sfn7003()">关闭弹窗</button>
            </div>
        </div>
    </div>
    <!-- 
        需要输入框1：请输入化肥数量
        需要输入框2：请输入化肥施肥时长(分钟数)
        需要输入框3：请输入种子成熟时长(分钟数)
    -->
    <div id="jisuan">
        <div class="zz_list">
            <div class="zz_content">
                <div class="input">
                    <div>请输入化肥数量</div>
                    <input id="input1" type="number" placeholder="请输入">
                </div>
                <div class="input">
                    <div>请输入化肥施肥时长(分钟数)</div>
                    <input id="input2" type="number" placeholder="请输入">
                </div>
                <div class="input">
                    <div>请输入花盆种子成熟时长(分钟数)</div>
                    <input id="input3" type="number" placeholder="请输入">
                </div>
                <div class="input">
                    <div>请输入水盆种子成熟时长(分钟数)</div>
                    <input id="input4" type="number" placeholder="请输入">
                </div>
                <div class="input">
                    <div>请输入花盆总数(默认14)</div>
                    <input id="input5" type="number" placeholder="请输入，输入0则不计算">
                </div>
                <div class="input">
                    <div>请输入水盆总数(默认7)</div>
                    <input id="input6" type="number" placeholder="请输入，输入0则不计算">
                </div>
                <div>需要的花盆种子数：<span id="huapen_need_num"></span></div>
                <div>需要的水盆种子数：<span id="shuipen_need_num"></span></div>
            </div>
            <div class="zz_btn">
                <button type="button" onclick="sfn7003()">关闭弹窗</button>
                <button type="button" onclick="sfn7005()">开始计算</button>
            </div>
        </div>
    </div>
    <div id="danshua">
        <div class="zz_list">
            <div class="zz_content">
                <!-- <div><label><input type="radio" name="radioName" value="l8d9075ig9" />星星之火</label></div>
                <div><label><input type="radio" name="radioName" value="m1z2075j4k" />银色星星之火</label></div>
                <div><label><input type="radio" name="radioName" value="foa4075ymj" />金色星星之火</label></div>
                <div><label><input type="radio" name="radioName" value="l8t6075s4i" />水晶星星之火</label></div>
                <div><label><input type="radio" name="radioName" value="39b8375ac9" />心花怒放</label></div>
                <div><label><input type="radio" name="radioName" value="pku137546s" />银色心花怒放</label></div>
                <div><label><input type="radio" name="radioName" value="qcp9375mer" />金色心花怒放</label></div>
                <div><label><input type="radio" name="radioName" value="dn82375_k1" />水晶心花怒放</label></div>
                <div><label><input type="radio" name="radioName" value="wph8875qaz" />星光熠熠</label></div>
                <div><label><input type="radio" name="radioName" value="7jg1875jg1" />银色星光熠熠</label></div>
                <div><label><input type="radio" name="radioName" value="3tc98758qp" />金色星光熠熠</label></div>
                <div><label><input type="radio" name="radioName" value="6pp2875xr1" />水晶星光熠熠</label></div> -->
                <div><label><input type="radio" name="radioName" value="ms52495nri" />波江座花</label></div>
                <div><label><input type="radio" name="radioName" value="ml8232549d" />麒麟座花</label></div>
                <div><label><input type="radio" name="radioName" value="faz27252ya" />水蛇座花</label></div>
                <div><label><input type="radio" name="radioName" value="jb3282501q" />仙后座花</label></div>
                <div><label><input type="radio" name="radioName" value="eb87025gvx" />天鸽座花</label></div>
                <div><label><input type="radio" name="radioName" value="a3f7695sah" />仙女座花</label></div>
                <div><label><input type="radio" name="radioName" value="0sf7525_e7" />剑鱼座花</label></div>
                <div><label><input type="radio" name="radioName" value="ma47125h9v" />时钟座花</label></div>
                <div><label><input type="radio" name="radioName" value="ea1269552y" />鲸鱼座花</label></div>
                <div><label><input type="radio" name="radioName" value="84c2525qy0" />盾牌座花</label></div>
                <div><label><input type="radio" name="radioName" value="x2a2025obu" />凤凰座花</label></div>
                <div><label><input type="radio" name="radioName" value="4ef2125kud" />天龙座花</label></div>
                <div><label><input type="radio" name="radioName" value="ss17445de0" />猎户座花</label></div>
                <div><label><input type="radio" name="radioName" value="8pq4625xoa" />狐狸座花</label></div>
                <div><label><input type="radio" name="radioName" value="qug06252ys" />孔雀座花</label></div>
                <div><label><input type="radio" name="radioName" value="xpi4425qan" />唧筒座花</label></div>
                <div><label><input type="radio" name="radioName" value="zil0425ykr" />英仙座花</label></div>
                <div><label><input type="radio" name="radioName" value="j_g4225h4p" />杜鹃座花</label></div>
                <div><label><input type="radio" name="radioName" value="jq502254ci" />南极座花</label></div>
                <div><label><input type="radio" name="radioName" value="s4i4925mgz" />飞马座花</label></div>
                <div><label><input type="radio" name="radioName" value="1qe79257zr" />巨爵座花</label></div>
                <div><label><input type="radio" name="radioName" value="gpj7825elr" />天琴座花</label></div>
                <div><label><input type="radio" name="radioName" value="ziv7725p5a" />仙王座花</label></div>
                <div><label><input type="radio" name="radioName" value="qyh7325h24" />天箭座花</label></div>
                <div><label><input type="radio" name="radioName" value="m0k7155psv" />绣球</label></div>
                <div><label><input type="radio" name="radioName" value="c9v0155n1x" />银绣球</label></div>
                <div><label><input type="radio" name="radioName" value="5k78155ea5" />金绣球</label></div>
                <div><label><input type="radio" name="radioName" value="h_61155p6j" />粉团花</label></div>
                <div><label><input type="radio" name="radioName" value="qdh8386u5b" />鸢尾</label></div>
                <div><label><input type="radio" name="radioName" value="vpj13864zp" />银色鸢尾</label></div>
                <div><label><input type="radio" name="radioName" value="2k_93869ts" />金色鸢尾</label></div>
                <div><label><input type="radio" name="radioName" value="afs2386ilj" />乌鸢</label></div>
                <div><label><input type="radio" name="radioName" value="1g529258zj" />五色星界神树</label></div>
                <div><label><input type="radio" name="radioName" value="wi89495_yf" />流光星辰</label></div>
                <div><label><input type="radio" name="radioNameType" value="1" />普通</label></div>
                <div><label><input type="radio" name="radioNameType" value="2" />极品</label></div>
                <div style="display: flex;align-items: center;width: 100%;">
                    <span style="width: 130px;">自定义花种ID：</span>
                    <input id="diy-shua-id" placeholder="花种ID" />
                </div>
                <div style="width: 100%;display: flex;align-items: center;justify-content: space-between;">
                    <div style="width: 25%;"><label><input type="radio" name="radioHuajian" value="ra18738ipo" />铂金花剪</label></div>
                    <div style="width: 25%;"><label><input type="radio" name="radioHuajian" value="ffu073832o" />黄金花剪</label></div>
                    <div style="width: 25%;"><label><input type="radio" name="radioHuajian" value="na777382v4" />白银花剪</label></div>
                    <div style="width: 25%;"><label><input type="radio" name="radioHuajian" value="69257383tg" />青铜花剪</label></div>
                </div>
                <div style="width: 100%;display: flex;align-items: center;">
                    <div>
                        <span style="font-size: 12px;">刷化肥毫秒：</span>
                        <input style="width: 60%;" id="taskTime" type="number" placeholder="请输入刷化肥任务毫秒">
                    </div>
                    <div>
                        <span style="font-size: 12px;">日常毫秒：</span>
                        <input style="width: 60%;" id="taskTimeR" type="number" placeholder="请输入日常任务毫秒">
                    </div>
                </div>
            </div>
            <div class="zz_btn">
                <button type="button" onclick="sfn7003()">关闭</button>
                <button type="button" onclick="sfn7010()">清空</button>
                <button type="button" onclick="sfn7011()">保存</button>
            </div>
        </div>
    </div>
    <script src="./jquery.min.js"></script>
    <script type="text/javascript" charset="utf-8" src="./token.js?v1.2.7"></script>
    <script type="text/javascript" charset="utf-8" src="./hs.js?v1.2.7"></script>
    <script>
        // 单刷花盆或者水盆，指定花种-未配置，则自动播种
        var is_shua_one_id = ''
        var is_shua_one_id_type = ''
        // 花剪类型
        var is_huajian_id = 'ra18738ipo'
        // 刷化肥间隔时长，默认500ms
        var task_time = 500
        // 日常任务执行间隔时长，默认500ms
        var task_time_r = 500
        var hs_h_l = []
        if (localStorage.getItem('hs_xiaohao_model') == 1) {
            hs_h_l = huapeng_list_all_xiaohao_first
        } else {
            hs_h_l = huapeng_list_all_first
        }
        var hs_t_l = []
        if (localStorage.getItem("hs_token_list_all_first") && localStorage.getItem('hs_xiaohao_model') != 1) {
            hs_t_l = JSON.parse(localStorage.getItem("hs_token_list_all_first"))
        }
        if (localStorage.getItem("hs_token_list_all_xiaohao_first") && localStorage.getItem('hs_xiaohao_model') == 1) {
            hs_t_l = JSON.parse(localStorage.getItem("hs_token_list_all_xiaohao_first"))
        }
        if (localStorage.getItem("hs_token_list_all_cangkun_first") && localStorage.getItem('hs_cangkun_model') == 1) {
            hs_t_l = JSON.parse(localStorage.getItem("hs_token_list_all_cangkun_first"))
        }
        // console.log(hs_h_l);
        // console.log(diuqi_list);
        var ifr = document.getElementById("ifr")
        var pkid = document.getElementById("pkid")
        var indexid = document.getElementById("indexid")
        var shuaMax = document.getElementById("shuaMax")
        var accountindex = document.getElementById("accountindex")
        var token_zhuhao = ''
        var token_idx = 0
        var token_dan = ''

        var songwan_hecheng = 0
        
        var zhongziName = '梅花'
        var zhongziId = '5e193355dh'
        var zhongziIdNum = '1'
        var shuizhiName = '萍水草'
        var shuizhiId = 'r645337y9w'
        var shuizhiIdNum = '1'

        var zhongziNameZD = '菊花'
        var zhongziIdZD = 'i5i53359if'
        var zhongziIdNumZD = '3'

        var shuizhiNameZD = '萍水草'
        var shuizhiIdZD = 'r645337y9w'
        var shuizhiIdNumZD = '1'

        var hs_isauto_shouhua = localStorage.getItem("hs_isauto_shouhua") || '0'
        var shouhua_fen = 150

        var hs_isauto_buy = 0
        var shuawan_zengsong = 0
        var shua_jiaohua = 0
        var hs_xiaohao_model = 0
        var hs_cangkun_model = 0
        var hs_shua_guding_num = 0
        var hs_shua_xunci_num = 0
        var hs_shua_renwu_num = 0
        var hs_shua_renwu_num_task = 1
        var shuawan_stop_huafei = 0
        var shua_huapen_id = 0
        var shua_huajian_id = 0
        var shuawan_stop_huapen = 1
        var shuawan_stop_shuipen = 1
        var huayuan_t = "http://123.207.116.159:8098"
        // var huayuan_t = "http://47.108.60.249:9998"
        var home_url = "https://www.5iwapgame.com/home/home.go?sid="
        var huayuan_url = huayuan_t+"/mfhy/garden/index.asp?sid="
        
        const jpList = {
            "ss17445de0": "yhu1445aan",
            "8pq4625xoa": "mv83445e5v",
            "qug06252ys": "jse9625of1",
            "xpi4425qan": "dj85625m_u",
            "zil0425ykr": "ec69425sg8",
            "j_g4225h4p": "lm95425rto",
            "jq502254ci": "3fz9225oz0",
            "s4i4925mgz": "h9a5225gz8",
            "1qe79257zr": "46d19258ay",
            "4ef2125kud": "uub3925lkf",
            "ma47125h9v": "qk311253yh",
            "jb3282501q": "r903125ea1",
            "gpj7825elr": "mqf1825na1",
            "x2a2025obu": "v093825emf",
            "eb87025gvx": "s1g10251kg",
            "faz27252ya": "xhk3025vhp",
            "ziv7725p5a": "hzh1725_3k",
            "84c2525qy0": "jhh37255g9",
            "0sf7525_e7": "ux515257yd",
            "ml8232549d": "l2t352539q",
            "qyh7325h24": "k0j1325cjc",
            "ea1269552y": "i0y3325env",
            "a3f7695sah": "2ul1695t0d",
            "ms52495nri": "x3336951k5",
        }
        window.onload = function () {
            let u = navigator.userAgent;
            let android = u.indexOf('Android') > -1 || u.indexOf('Adr') > -1 || u.indexOf('iPhone') > -1; //android终端
            if(android){
                sfn7004()
            }
            if($(document).width() >= 600){
                $('#hideBtnBox').width('200px')
                $('#hideBtnBox').css("padding-right","10px")
            } else {
                $('#hideBtnBox').width('100px')
            }
            if (localStorage.getItem('hs_danshua_id')) {
                is_shua_one_id = localStorage.getItem('hs_danshua_id')
            } else {
                is_shua_one_id = ""
            }
            if (localStorage.getItem('hs_danshua_id_type')) {
                is_shua_one_id_type = localStorage.getItem('hs_danshua_id_type')
            } else {
                is_shua_one_id_type = ""
            }
            if (localStorage.getItem('hs_huajian_id')) {
                is_huajian_id = localStorage.getItem('hs_huajian_id')
            } else {
                is_huajian_id = "ra18738ipo"
            }
            if (localStorage.getItem('hs_task_time')) {
                task_time = Number(localStorage.getItem('hs_task_time'))
            } else {
                task_time = 500
            }
            if (localStorage.getItem('hs_task_time_r')) {
                task_time_r = Number(localStorage.getItem('hs_task_time_r'))
            } else {
                task_time_r = 500
            }
            $('#nextTask').text(`下次任务日:${localStorage.getItem('hs_isDayNext_data') || ''}`)
            nextTime5.innerText = `当前任务状态：${localStorage.getItem('hs_isDayMask') == 1 ? '执行中' : '空闲'}`;
            $.get("http://texun.yueyue.online/hsget.php", function (result) {
                let configList = JSON.parse(result)
                // console.log(configList)
                let hsConfig = configList.find(i => i.keys == "hs_config") || {}
                if (hsConfig && hsConfig.values) {
                    let values = JSON.parse(hsConfig.values)
                    document.getElementById('nextTime1').innerText = '下次收花时间1：' + getNowTime(Number(values.nextTimeShouhuaHs1))
                    document.getElementById('nextTime2').innerText = '下次收花时间2：' + getNowTime(Number(values.nextTimeShouhuaHs2))
                }
            })
            if (localStorage.getItem("hs_token_idx")) {
                token_idx = Number(localStorage.getItem("hs_token_idx"))
            }
            token_zhuhao = hs_t_l[0]
            token_dan = hs_t_l[token_idx]
            if (localStorage.getItem("hs_isauto_buy")) {
                hs_isauto_buy = localStorage.getItem("hs_isauto_buy")
            }
            if (localStorage.getItem("hs_xiaohao_model")) {
                hs_xiaohao_model = localStorage.getItem("hs_xiaohao_model")
            }
            if (localStorage.getItem("hs_cangkun_model")) {
                hs_cangkun_model = localStorage.getItem("hs_cangkun_model")
            }
            if (localStorage.getItem("hs_shua_guding_num")) {
                hs_shua_guding_num = localStorage.getItem("hs_shua_guding_num")
            }
            if (localStorage.getItem("hs_shua_xunci_num")) {
                hs_shua_xunci_num = localStorage.getItem("hs_shua_xunci_num")
            }
            if (localStorage.getItem("hs_shua_renwu_num")) {
                hs_shua_renwu_num = localStorage.getItem("hs_shua_renwu_num")
            }
            if (localStorage.getItem("shuawan_zengsong")) {
                shuawan_zengsong = localStorage.getItem("shuawan_zengsong")
            }
            if (localStorage.getItem("shua_jiaohua")) {
                shua_jiaohua = localStorage.getItem("shua_jiaohua")
            }
            if (localStorage.getItem("shuawan_stop_huafei")) {
                shuawan_stop_huafei = localStorage.getItem("shuawan_stop_huafei")
            }
            if (localStorage.getItem("shua_huapen_id")) {
                shua_huapen_id = localStorage.getItem("shua_huapen_id")
            }
            if (localStorage.getItem("shua_huajian_id")) {
                shua_huajian_id = localStorage.getItem("shua_huajian_id")
            }
            if (localStorage.getItem("shuawan_stop_huapen")) {
                shuawan_stop_huapen = localStorage.getItem("shuawan_stop_huapen")
            }
            if (localStorage.getItem("shuawan_stop_shuipen")) {
                shuawan_stop_shuipen = localStorage.getItem("shuawan_stop_shuipen")
            }
            if (localStorage.getItem("hs_shouhua_fen")) {
                shouhua_fen = Number(localStorage.getItem("hs_shouhua_fen"))
            }
            document.getElementById('hs_isauto_buy').innerText = '自动买花' + hs_isauto_buy
            document.getElementById('shuawan_stop_huafei_id').innerText = '刷停' + shuawan_stop_huafei
            document.getElementById('is_shua_huapen_id').innerText = '单刷花盆' + shua_huapen_id
            document.getElementById('is_shua_huajian_id').innerText = '自动花剪' + shua_huajian_id
            // document.getElementById('shuawan_zengsong_id').innerText = '赠送' + shuawan_zengsong
            document.getElementById('shua_jiaohua_id').innerText = '浇花' + shua_jiaohua
            $('.xiaohao_model_id').text('小号' + hs_xiaohao_model)
            $('.cangkun_model_id').text('仓库' + hs_cangkun_model)
            document.getElementById('shua_guding_num_id').innerText = '刷次' + hs_shua_guding_num
            document.getElementById('shua_xunhuan_num_id').innerText = '循次' + hs_shua_xunci_num
            document.getElementById('shua_renwu_num_id').innerText = '任次' + hs_shua_renwu_num
            document.getElementById('shuawan_stop_huapen_id').innerText = '刷完花盆停止' + shuawan_stop_huapen
            document.getElementById('shuawan_stop_shuipen_id').innerText = '刷完水盆停止' + shuawan_stop_shuipen
            document.getElementById('xunhuan').innerText = '循环收花' + hs_isauto_shouhua
            document.getElementById('fenzhong').innerText = '成熟时长(分)：' + shouhua_fen
            if (localStorage.getItem("hs_zhongzi")) {
                zhongziId = localStorage.getItem("hs_zhongzi")
            }
            if (localStorage.getItem("hs_zhongzi_name")) {
                zhongziName = localStorage.getItem("hs_zhongzi_name")
            }
            if (localStorage.getItem("hs_zhongzi_num")) {
                zhongziIdNum = localStorage.getItem("hs_zhongzi_num")
            }
            if (localStorage.getItem("hs_shuizhi")) {
                shuizhiId = localStorage.getItem("hs_shuizhi")
            }
            if (localStorage.getItem("hs_shuizhi_name")) {
                shuizhiName = localStorage.getItem("hs_shuizhi_name")
            }
            if (localStorage.getItem("hs_shuizhi_num")) {
                shuizhiIdNum = localStorage.getItem("hs_shuizhi_num")
            }
            if (localStorage.getItem("hs_zhongzi_zd")) {
                zhongziIdZD = localStorage.getItem("hs_zhongzi_zd")
            }
            if (localStorage.getItem("hs_zhongzi_name_zd")) {
                zhongziNameZD = localStorage.getItem("hs_zhongzi_name_zd")
            }
            if (localStorage.getItem("hs_zhongzi_num_zd")) {
                zhongziIdNumZD = localStorage.getItem("hs_zhongzi_num_zd")
            }
            if (localStorage.getItem("hs_shuizhi_zd")) {
                shuizhiIdZD = localStorage.getItem("hs_shuizhi_zd")
            }
            if (localStorage.getItem("hs_shuizhi_name_zd")) {
                shuizhiNameZD = localStorage.getItem("hs_shuizhi_name_zd")
            }
            if (localStorage.getItem("hs_shuizhi_num_zd")) {
                shuizhiIdNumZD = localStorage.getItem("hs_shuizhi_num_zd")
            }
            if (token_dan) {
                ifr.src = huayuan_url + token_dan
            } else {
                ifr.src = "https://www.5iwapgame.com"
            }
            pkid.innerText = token_idx
            accountindex.innerText = token_idx
            if(localStorage.getItem('nextTimeGetDayMaskHs') == 1){
                localStorage.setItem('hs_isDayMask',1);
                localStorage.setItem('nextTimeGetDayMaskHs',2);
                localStorage.setItem('hs_isDayNext_data',new Date(Date.now()+86410987).getDate());
                // console.log('调用每日任务开始函数');
                setTimeout(function() {
                    if (localStorage.getItem("hs_xiaohao_model") == 1) {
                        // 小号跳过签到
                        sfn30151();
                    } else {
                        sfn3005();
                    }
                }, 15000);
            }
            if(hs_isauto_shouhua == 1 && localStorage.getItem('nextTimeShouhuaHsTrue') == 1){
                localStorage.setItem('hs_isDayMask',1);
                localStorage.setItem('nextTimeShouhuaHsTrue',2);
                // console.log('调用收花函数');
                setTimeout(function() {
                    sfn4001();
                }, 16000);
            }
            $('#jisuanhechengInput2').blur(function () {
                if ($('#jisuanhechengInput1').val() > 0 && $('#jisuanhechengInput2').val()) {
                    $('#jisuanhechengNum').text(Math.floor($('#jisuanhechengInput2').val() / $('#jisuanhechengInput1').val()))
                }
            })
            $('#jisuanhechengInput1').blur(function () {
                if ($('#jisuanhechengInput1').val() > 0 && $('#jisuanhechengInput2').val()) {
                    $('#jisuanhechengNum').text(Math.floor($('#jisuanhechengInput2').val() / $('#jisuanhechengInput1').val()))
                }
            })
            $("input[name='radioName']").change(function () {
                $('#diy-shua-id').val('');
            })
        }
        function sfn1000 () {
            ifr.src = home_url + token_dan
        }
        function sfn1001 () {
            var token_idx_prompt = prompt("请输入下标（数字0 ~ " + (hs_t_l.length-1) + "）","");
            if(token_idx_prompt){
                token_idx = parseInt(token_idx_prompt);
                token_dan = hs_t_l[token_idx];
                localStorage.setItem("hs_token_idx",token_idx);
                ifr.src = huayuan_url + token_dan;
                pkid.innerText = token_idx;
                accountindex.innerText = token_idx;
            }
        }
        function sfn1002 () {
            token_idx = token_idx + 1;
            if(token_idx >= hs_t_l.length){
                token_idx = 0
            }
            pkid.innerText = token_idx;
            accountindex.innerText = token_idx;
            token_dan = hs_t_l[token_idx];
            localStorage.setItem("hs_token_idx",token_idx);
            ifr.src = home_url + token_dan;
        }
        var is_open1 = 0
        function sfn1003 () {
            if (is_open1 == 0) {
                is_open1 = 1
                document.getElementById('bozhong').style.display = 'block'
            } else {
                is_open1 = 0
                document.getElementById('bozhong').style.display = 'none'
                $('#hideBtnBox').show()
            }
        }
        var is_open2 = 0
        function sfn10031 () {
            if (is_open2 == 0) {
                is_open2 = 1
                $('#hideBtnBox').show()
            } else {
                document.getElementById('bozhong').style.display = 'none'
                $('#hideBtnBox').hide()
                is_open1 = 0
                is_open2 = 0
            }
        }
        function sfn1004 () {
            let zhongzi = prompt(`请输入种子(当前种子:${zhongziName}-${zhongziId}-${zhongziIdNum}个)`,"");
            if (zhongzi) {
                let value1 = zhongzi.split('.')[0]
                let value2 = zhongzi.split('.')[1]
                let value3 = zhongzi.split('.')[2]
                if (value1) {
                    localStorage.setItem("hs_zhongzi_name", value1);
                    zhongziName = value1
                }
                if (value2) {
                    localStorage.setItem("hs_zhongzi", value2);
                    zhongziId = value2
                }
                if (value3) {
                    localStorage.setItem("hs_zhongzi_num", value3);
                    zhongziIdNum = value3
                }
            }
        }
        function sfn10041 () {
            let zhongzi = prompt(`请输入种子(当前种子:${zhongziNameZD}-${zhongziIdZD}-${zhongziIdNumZD}个)`,"");
            if (zhongzi) {
                let value1 = zhongzi.split('.')[0]
                let value2 = zhongzi.split('.')[1]
                let value3 = zhongzi.split('.')[2]
                if (value1) {
                    localStorage.setItem("hs_zhongzi_name_zd", value1);
                    zhongziNameZD = value1
                }
                if (value2) {
                    localStorage.setItem("hs_zhongzi_zd", value2);
                    zhongziIdZD = value2
                }
                if (value3) {
                    localStorage.setItem("hs_zhongzi_num_zd", value3);
                    zhongziIdNumZD = value3
                }
            }
        }
        function sfn1005 () {
            let shuizhi = prompt(`请输入水值(当前水值:${shuizhiName}-${shuizhiId}-${shuizhiIdNum}个)`,"");
            if (shuizhi) {
                let value1 = shuizhi.split('.')[0]
                let value2 = shuizhi.split('.')[1]
                let value3 = shuizhi.split('.')[2]
                if (value1) {
                    localStorage.setItem("hs_shuizhi_name", value1);
                    shuizhiName = value1
                }
                if (value2) {
                    localStorage.setItem("hs_shuizhi", value2);
                    shuizhiId = value2
                }
                if (value3) {
                    localStorage.setItem("hs_shuizhi_num", value3);
                    shuizhiIdNum = value3
                }
            }
        }
        function sfn10051 () {
            let shuizhi = prompt(`请输入水值(当前水值:${shuizhiNameZD}-${shuizhiIdZD}-${shuizhiIdNumZD}个)`,"");
            if (shuizhi) {
                let value1 = shuizhi.split('.')[0]
                let value2 = shuizhi.split('.')[1]
                let value3 = shuizhi.split('.')[2]
                if (value1) {
                    localStorage.setItem("hs_shuizhi_name_zd", value1);
                    shuizhiNameZD = value1
                }
                if (value2) {
                    localStorage.setItem("hs_shuizhi_zd", value2);
                    shuizhiIdZD = value2
                }
                if (value3) {
                    localStorage.setItem("hs_shuizhi_num_zd", value3);
                    shuizhiIdNumZD = value3
                }
            }
        }
        function sfn1006 () {
            if (hs_isauto_shouhua == 1) {
                localStorage.setItem('hs_isauto_shouhua', 0)
            } else {
                localStorage.setItem('hs_isauto_shouhua', 1)
            }
            window.location.reload()
        }
        function sfn6006 () {
            if (shuawan_stop_huafei == 1) {
                shuawan_stop_huafei = 0
                localStorage.setItem('shuawan_stop_huafei', 0)
            } else {
                shuawan_stop_huafei = 1
                localStorage.setItem('shuawan_stop_huafei', 1)
            }
            document.getElementById('shuawan_stop_huafei_id').innerText = '刷停' + shuawan_stop_huafei
        }
        function sfn80040 () {
            if (shua_huapen_id == 1) {
                shua_huapen_id = 2
                localStorage.setItem('shua_huapen_id', 2)
            } else if (shua_huapen_id == 2) {
                shua_huapen_id = 0
                localStorage.setItem('shua_huapen_id', 0)
            } else {
                shua_huapen_id = 1
                localStorage.setItem('shua_huapen_id', 1)
            }
            document.getElementById('is_shua_huapen_id').innerText = '单刷花盆' + shua_huapen_id
        }
        function sfn80041 () {
            if (shua_huajian_id == 1) {
                shua_huajian_id = 0
                localStorage.setItem('shua_huajian_id', 0)
            } else {
                shua_huajian_id = 1
                localStorage.setItem('shua_huajian_id', 1)
            }
            document.getElementById('is_shua_huajian_id').innerText = '自动花剪' + shua_huajian_id
        }
        function sfn6007 () {
            if (hs_isauto_buy == 1) {
                hs_isauto_buy = 0
                localStorage.setItem('hs_isauto_buy', 0)
            } else {
                hs_isauto_buy = 1
                localStorage.setItem('hs_isauto_buy', 1)
            }
            document.getElementById('hs_isauto_buy').innerText = '自动买花' + hs_isauto_buy
        }
        function sfn6106 () {
            if (shuawan_stop_huapen == 1) {
                shuawan_stop_huapen = 0
                localStorage.setItem('shuawan_stop_huapen', 0)
            } else {
                shuawan_stop_huapen = 1
                localStorage.setItem('shuawan_stop_huapen', 1)
            }
            document.getElementById('shuawan_stop_huapen_id').innerText = '刷完花盆停止' + shuawan_stop_huapen
        }
        function sfn6206 () {
            if (shuawan_stop_shuipen == 1) {
                shuawan_stop_shuipen = 0
                localStorage.setItem('shuawan_stop_shuipen', 0)
            } else {
                shuawan_stop_shuipen = 1
                localStorage.setItem('shuawan_stop_shuipen', 1)
            }
            document.getElementById('shuawan_stop_shuipen_id').innerText = '刷完水盆停止' + shuawan_stop_shuipen
        }
        function sfn1007 () {
            let num = prompt("请输入分钟数","");
            if (num) {
                document.getElementById('fenzhong').innerText = '成熟时长(分)：' + num
                localStorage.setItem('hs_shouhua_fen', num)
                shouhua_fen = Number(num)
            }
        }
        function sfn2000 () {
            token_idx = 0;
            token_dan = hs_t_l[token_idx];
            localStorage.setItem("hs_token_idx",token_idx);
            ifr.src = huayuan_url + token_dan
            pkid.innerText = token_idx;
            accountindex.innerText = token_idx;
        }
        function sfn2001 (open) {
            ifr.src = huayuan_url + token_dan
        }
        function sfn2006 () {
            ifr.src = huayuan_t+"/mfhy/gbag/index.asp;?sid="+token_dan+"&type=1"
        }
        function sfn20060 () {
            bozhongIndex = 0
            token_idx = token_idx + 1;
            if(token_idx >= hs_t_l.length){
                token_idx = 0
            }
            pkid.innerText = token_idx;
            accountindex.innerText = token_idx;
            token_dan = hs_t_l[token_idx];
            localStorage.setItem("hs_token_idx",token_idx);
            sfn2006()
        }
        function sfn2013 () {
            ifr.src = huayuan_t+"/mfhy/gbag/index.asp;?sid="+token_dan+"&type=2"
        }
        function sfn20130 () {
            bozhongIndex = 0
            token_idx = token_idx + 1;
            if(token_idx >= hs_t_l.length){
                token_idx = 0
            }
            pkid.innerText = token_idx;
            accountindex.innerText = token_idx;
            token_dan = hs_t_l[token_idx];
            localStorage.setItem("hs_token_idx",token_idx);
            sfn2013()
        }
        function sfn2014 () {
            ifr.src = huayuan_t+"/mfhy/gmixt/index.asp;?sid="+token_dan+"&type=1"
        }
        function sfn2015 () {
            ifr.src = huayuan_t+"/mfhy/gmixt/index.asp;?sid="+token_dan+"&type=0&subType=1"
        }
        function sfn20151 () {
            bozhongIndex = 0
            token_idx = token_idx + 1;
            if(token_idx >= hs_t_l.length){
                token_idx = 0
            }
            pkid.innerText = token_idx;
            accountindex.innerText = token_idx;
            token_dan = hs_t_l[token_idx];
            localStorage.setItem("hs_token_idx",token_idx);
            sfn2015()
        }
        function sfn2016 () {
            ifr.src = huayuan_t+"/mfhy/rack/index.asp;?sid="+token_dan
        }
        function sfn2011 () {
            ifr.src = huayuan_t+"/mfhy/gbag/index.asp;?sid="+token_dan+"&type=0"
        }
        function sfn20110 () {
            bozhongIndex = 0
            token_idx = token_idx + 1;
            if(token_idx >= hs_t_l.length){
                token_idx = 0
            }
            pkid.innerText = token_idx;
            accountindex.innerText = token_idx;
            token_dan = hs_t_l[token_idx];
            localStorage.setItem("hs_token_idx",token_idx);
            sfn2011()
        }
        function sfn2017 () {
            ifr.src = huayuan_t+"/mfhy/fhouse/hoppetInfo.asp;?sid="+token_dan+"&type=0"
            // ifr.src = huayuan_t+"/mfhy/fhouse/hoppetInfo.asp;?sid="+token_dan+"&type=3"
        }
        function sfn20170 () {
            bozhongIndex = 0
            token_idx = token_idx + 1;
            if(token_idx >= hs_t_l.length){
                token_idx = 0
            }
            pkid.innerText = token_idx;
            accountindex.innerText = token_idx;
            token_dan = hs_t_l[token_idx];
            localStorage.setItem("hs_token_idx",token_idx);
            sfn2017()
        }
        function sfn2010 () {
            ifr.src = huayuan_t+"/mfhy/plaza/index.asp;?sid="+token_dan+"&type=1"
        }
        function sfn2012 () {
            ifr.src = huayuan_t+"/mfhy/plaza/index.asp;?sid="+token_dan+"&type=0"
        }
        function sfn2007 () {
            $.post(huayuan_t+"/mfhy/plaza/buy.asp;?sid="+token_dan+"&",{
                    type: '0',
                    subType: '0',
                    id: zhongziId,
                    count: zhongziIdNum
                }
            );
            setTimeout(function () {
                sfn2011()
            }, 200)
        }
        function sfn2008 () {
            $.post(huayuan_t+"/mfhy/plaza/buy.asp;?sid="+token_dan+"&",{
                    type: '0',
                    subType: '0',
                    id: shuizhiId,
                    count: shuizhiIdNum
                }
            );
            setTimeout(function () {
                sfn2011()
            }, 200)
        }
        function sfn2002 () {
            bozhongIndex = 0
            token_idx = token_idx + 1;
            if(token_idx >= hs_t_l.length){
                token_idx = 0
            }
            pkid.innerText = token_idx;
            accountindex.innerText = token_idx;
            token_dan = hs_t_l[token_idx];
            localStorage.setItem("hs_token_idx",token_idx);
            ifr.src = huayuan_url + token_dan;
        }
        function sfn2009 () {
            bozhongIndex = 0
            token_idx = token_idx + 1;
            if(token_idx >= hs_t_l.length){
                token_idx = 0
            }
            pkid.innerText = token_idx;
            token_dan = hs_t_l[token_idx];
            localStorage.setItem("hs_token_idx",token_idx);
            sfn2011()
            // sfn2004()
        }
        let bozhongIndex = 0
        // 播种：mfhy/pot/sowIndex.asp;?sid=1523636_19db5014a7f5dc45cd53&potId=edf68e7a85
        function sfn2004 () {
            indexid.innerText = bozhongIndex;
            let p_l = hs_h_l[token_idx]
            ifr.src = huayuan_t+"/mfhy/pot/sowIndex.asp;?sid=" + token_dan + "&potId=" + p_l[bozhongIndex];
            bozhongIndex++
            if (bozhongIndex > p_l.length) {
                sfn2001();
                bozhongIndex = 0
                indexid.innerText = '0';
            }
        }
        function sfn30011 (potIndex, fun) {
            let timerIndex = 0
            let p_l = hs_h_l[potIndex]
            setTimeout(function () {
                ifr.src = huayuan_t+"/mfhy/gfri/friDoopera.asp;?sid="+token_zhuhao+"&potId="+p_l[timerIndex]+"&htype=1&otherId=" + chaizhai_list[potIndex-1]
            }, 500)
            setTimeout(function () {
                ifr.src = huayuan_t+"/mfhy/gfri/friDoopera.asp;?sid="+token_zhuhao+"&potId="+p_l[timerIndex]+"&htype=2&otherId=" + chaizhai_list[potIndex-1]
            }, 1000)
            setTimeout(function () {
                ifr.src = huayuan_t+"/mfhy/gfri/friDoopera.asp;?sid="+token_zhuhao+"&potId="+p_l[timerIndex]+"&htype=3&otherId=" + chaizhai_list[potIndex-1]
            }, 1500)
            let tmr = setInterval(function () {
                if (timerIndex >= p_l.length - 1) {
                    clearInterval(tmr);
                    setTimeout(function () {
                        sfn2001();
                        if (typeof fun == "function") {
                            fun(true)
                        }
                    }, 500)
                    indexid.innerText = '0';
                }else{
                    indexid.innerText = timerIndex;
                    setTimeout(function () {
                        ifr.src = huayuan_t+"/mfhy/gfri/friDoopera.asp;?sid="+token_zhuhao+"&potId="+p_l[timerIndex]+"&htype=1&otherId=" + chaizhai_list[potIndex-1]
                    }, 500)
                    setTimeout(function () {
                        ifr.src = huayuan_t+"/mfhy/gfri/friDoopera.asp;?sid="+token_zhuhao+"&potId="+p_l[timerIndex]+"&htype=2&otherId=" + chaizhai_list[potIndex-1]
                    }, 1000)
                    setTimeout(function () {
                        ifr.src = huayuan_t+"/mfhy/gfri/friDoopera.asp;?sid="+token_zhuhao+"&potId="+p_l[timerIndex]+"&htype=3&otherId=" + chaizhai_list[potIndex-1]
                    }, 1500)
                    timerIndex++;
                }
            }, 1700) 
        }
        // 帮助
        // 采摘：/mfhy/gfri/pick.asp;?sid=1263966_b66ea7a917dfd012700f&potId=edf68e7a85&otherId=1523636
        let one_index = 0;
        let two_index = 0;
        let timer1 = null
        function sfn3002 () {
            $("#task_name").text('采摘');
            pkid.innerText = one_index + 1
            let p_l = hs_h_l[one_index+1]
            timer1 = setInterval(function () {
                indexid.innerText = two_index
                ifr.src = huayuan_t+"/mfhy/gfri/pick.asp;?sid="+ token_zhuhao +"&potId="+ p_l[two_index] +"&otherId=" + chaizhai_list[one_index];
                two_index++
                if(two_index>=p_l.length){
                    clearInterval(timer1);
                    timer1 = null
                    setTimeout(function(){
                        sfn2000()
                        two_index = 0;
                        one_index++;
                        if(one_index<chaizhai_list.length){
                            sfn3002()
                        } else {
                            window.location.reload()
                        }
                    },500)
                }
            }, 500)
        }
        // 一键签到
        function sfn3005 () {
            $("#task_name").text('签到');
            let qiandao_index = 0
            let tmr = setInterval(function () {
                if (qiandao_index >= hs_t_l.length) {
                    clearInterval(tmr);
                    sfn30151();
                }else{
                    pkid.innerText = qiandao_index;
                    ifr.src = huayuan_t+"/mfhy/gnote/note.asp;?sid="+ hs_t_l[qiandao_index];
                    setTimeout(function () {
                        ifr.src = huayuan_t+"/mfhy/gnote/rewardInfo.asp;?sid="+ hs_t_l[qiandao_index];
                    }, 500)
                    setTimeout(function () {
                        ifr.src = huayuan_t+"/mfhy/gnote/takeAward.asp;?sid="+ hs_t_l[qiandao_index];
                        qiandao_index++;
                    }, 1000)
                }
            }, 1520)
        }
        // 一键购买天官赐福
        function sfn3006 () {
            $("#task_name").text('天官赐福');
            let t_idx = 0
            let tmr = setInterval(function () {
                if (t_idx >= hs_t_l.length) {
                    clearInterval(tmr);
                    sfn30061()
                }else{
                    pkid.innerText = t_idx;
                        $.post(huayuan_t+"/mfhy/plaza/buy.asp;?sid="+hs_t_l[t_idx]+"&",{
                            type: '1',
                            subType: '0',
                            id: 'fkk75335xmq',
                            count: '1'
                        });
                    t_idx++;
                }
            }, 500)
        }
        // 回收天官赐福
        function sfn30061 () {
            $("#task_name").text('出天官赐福');
            let t_idx = 0
            let tmr = setInterval(function () {
                if (t_idx >= hs_t_l.length) {
                    clearInterval(tmr);
                    sfn3009();
                }else{
                    pkid.innerText = t_idx;
                    $.post(huayuan_t+"/mfhy/gbag/sell.asp;?sid="+hs_t_l[t_idx],{
                        modelId: '0s48531nls',
                        count: '1'
                    })
                    t_idx++;
                }
            }, 500)
        }
        // 一键购买种子
        function sfn3008 () {
            $("#task_name").text('购买种子');
            let t_idx = 0
            let tmr = setInterval(function () {
                if (t_idx >= hs_t_l.length) {
                    clearInterval(tmr);
                    if (hs_isauto_shouhua == 1) {
                        // console.log('一键买花完成，开始倒计时，刷新页面，记录任务标记，开始一键收花----' + getNowTime());
                        sfn30080()
                    } else {
                        $("#task_name").text('完成');
                        sfn2001()
                    }
                }else{
                    pkid.innerText = t_idx;
                    // 买百合2个半小时
                    $.post(huayuan_t+"/mfhy/plaza/buy.asp;?sid="+hs_t_l[t_idx]+"&",{
                            type: '0',
                            subType: '0',
                            id: zhongziIdZD,
                            count: zhongziIdNumZD
                        }
                    );
                    // 买水仙2个半小时
                    setTimeout(function () {
                        $.post(huayuan_t+"/mfhy/plaza/buy.asp;?sid="+hs_t_l[t_idx]+"&",{
                                type: '0',
                                subType: '0',
                                id: shuizhiIdZD,
                                count: shuizhiIdNumZD
                            }
                        );
                        t_idx++;
                    }, 500)
                }
            }, 1100)
        }
        // 进入下一轮操作收花
        function sfn30080 () {
            $.get("http://texun.yueyue.online/hsget.php", function (result) {
                let configList = JSON.parse(result)
                // console.log(configList)
                let hsConfig = configList.find(i => i.keys == "hs_config") || {}
                if (hsConfig && hsConfig.values) {
                    let values = JSON.parse(hsConfig.values)
                    let nextTimeShouhuaHs = new Date().getTime() + (shouhua_fen * 60 * 1000)
                    let keyValue = ""
                    // 小号模式固定时间，不调接口
                    if (localStorage.getItem("hs_xiaohao_model") == 1) {
                        keyValue = JSON.stringify({
                            nextTimeShouhuaHs1: values.nextTimeShouhuaHs1,
                            nextTimeShouhuaHs2: nextTimeShouhuaHs
                        })
                    } else {
                        keyValue = JSON.stringify({
                            nextTimeShouhuaHs1: nextTimeShouhuaHs,
                            nextTimeShouhuaHs2: values.nextTimeShouhuaHs2
                        })
                    }
                    let ajaxData = {
                        id: 1,
                        keys: 'hs_config',
                        values: keyValue,
                    }
                    $.post("http://texun.yueyue.online/hsupdate.php", ajaxData,function (result) {
                        // console.log(result)
                        if (localStorage.getItem("hs_xiaohao_model") == 1) {
                            localStorage.setItem('nextTimeShouhuaHs2', nextTimeShouhuaHs);
                        } else {
                            localStorage.setItem('nextTimeShouhuaHs1', nextTimeShouhuaHs);
                        }
                        localStorage.setItem('hs_isDayMask',2);
                        setTimeout(function(){
                            window.location.href = './hs2.html';
                        },30)
                    })
                }
            })
        }
        // 购买15天卡
        function sfn3009 () {
            $("#task_name").text('买15天卡');
            let t_idx = 0
            let tmr = setInterval(function () {
                if (t_idx >= hs_t_l.length) {
                    clearInterval(tmr);
                    // 买流光
                    sfn80034();
                }else{
                    pkid.innerText = t_idx;
                    $.post(huayuan_t+"/mfhy/plaza/buy.asp;?sid="+hs_t_l[t_idx]+"&",{
                            type: '1',
                            subType: '0',
                            id: '9i920385az',
                            count: '3'
                        }
                    );
                    setTimeout(function () {
                        ifr.src = huayuan_t+"/mfhy/garden/openOk.asp;?sid="+ hs_t_l[t_idx] + "&toolId=4038";
                    }, 500)
                    setTimeout(function () {
                        ifr.src = huayuan_t+"/mfhy/garden/openOk.asp;?sid="+ hs_t_l[t_idx] + "&toolId=4038";
                    }, 1000)
                    setTimeout(function () {
                        ifr.src = huayuan_t+"/mfhy/garden/openOk.asp;?sid="+ hs_t_l[t_idx] + "&toolId=4038";
                        t_idx++;
                    }, 1500)
                }
            }, 1900)
        }
        // 使用15天卡
        function sfn3010 () {
            
        }
        // 购买化肥包
        function sfn3014 () {
            $("#task_name").text('用化肥1包');
            ifr.src = huayuan_t+"/mfhy/gbag/openBox.asp;?sid="+ token_dan + "&type=1&modelId=djqxobwoaixnauy0737y01&count=1";
        }
        // 使用化肥包十包
        function sfn3015 () {
            $("#task_name").text('用化肥10包');
            let t_idx = 1
            let tmr = setInterval(function () {
                if (t_idx >= hs_t_l.length) {
                    clearInterval(tmr);
                    sfn2000()
                    $("#task_name").text('完成');
                }else{
                    pkid.innerText = t_idx;
                    ifr.src = huayuan_t+"/mfhy/gbag/openBox.asp;?sid="+ hs_t_l[t_idx] + "&type=1&modelId=djqxobwoaixnauy0737y01&count=10";
                    t_idx++;
                }
            }, 300)
        }
        // 每日任务购买化肥包
        function sfn30151 () {
            let t_idx = 0
            let tmr = setInterval(function () {
                if (t_idx >= hs_t_l.length) {
                    clearInterval(tmr);
                    sfn30152();
                }else{
                    pkid.innerText = t_idx;
                    $.post(huayuan_t+"/mfhy/plaza/buy.asp;?sid="+hs_t_l[t_idx]+"&",{
                            type: '1',
                            subType: '0',
                            id: 'ysn84535q8s',
                            count: '10'
                        }
                    );
                    t_idx++;
                }
            }, 500)
        }
        function sfn30152 () {
            let t_idx = 0
            let tmr = setInterval(function () {
                if (t_idx >= hs_t_l.length) {
                    clearInterval(tmr);
                    sfn3006();
                }else{
                    pkid.innerText = t_idx;
                    $.post(huayuan_t+"/mfhy/plaza/buy.asp;?sid="+hs_t_l[t_idx]+"&",{
                            type: '1',
                            subType: '0',
                            id: 'ysn84535q8s',
                            count: '10'
                        }
                    );
                    t_idx++;
                }
            }, 500)
        }
        // 添加花盆
        function sfn3011 () {
            ifr.src = huayuan_t+"/mfhy/pot/addPot.asp;?sid="+ token_dan + "&type=0";
        }
        // 添加水盆
        function sfn3012 () {
            ifr.src = huayuan_t+"/mfhy/pot/addPot.asp;?sid="+ token_dan + "&type=1";
        }
        // 花剪收花
        function sfn40010 (idx, token) {
            $("#task_name").text('花剪收花');
            let task_idx = idx || token_idx;
            let task_token = token || token_dan;
            let p_l = hs_h_l[task_idx];
            if (localStorage.getItem("shua_huapen_id") == 1) {
                p_l = hs_h_l[task_idx].slice(0,14);
            }
            if (localStorage.getItem("shua_huapen_id") == 2) {
                p_l = hs_h_l[task_idx].slice(14);
            }
            let t_idx = 0;
            let tmr = setInterval(function () {
                if (t_idx >= p_l.length) {
                    clearInterval(tmr);
                    $("#task_name").text('完成');
                }else{
                    indexid.innerText = t_idx;
                    ifr.src = huayuan_t+"/mfhy/pot/reap.asp;?sid="+task_token+"&cropType=1&toolId="+is_huajian_id+"&potId="+ p_l[t_idx];
                    t_idx++;
                }
            }, task_time)
        }
        // 一键收花
        function sfn4001 () {
            $("#task_name").text('收花');
            let t_idx = 0
            let tmr = setInterval(function () {
                if (t_idx >= hs_t_l.length) {
                    clearInterval(tmr);
                    if (hs_isauto_shouhua == 1) {
                        // console.log('一键收花完成，开始一键播种----' + getNowTime());
                        sfn4002()
                    } else {
                        $("#task_name").text('完成');
                        sfn2001()
                    }
                }else{
                    pkid.innerText = t_idx;
                    ifr.src = huayuan_t+"/mfhy/pot/okdooper.asp;?sid="+ hs_t_l[t_idx];
                    t_idx++;
                }
            }, task_time_r)
        }
        // 一键播种
        function sfn4002 () {
            $("#task_name").text('播种');
            let t_idx = 0
            let tmr = setInterval(function () {
                if (t_idx >= hs_t_l.length) {
                    clearInterval(tmr);
                    if (hs_isauto_shouhua == 1) {
                        // console.log('一键播种完成，开始一键买花----' + getNowTime());
                        if (localStorage.getItem('hs_isauto_buy') == 1) {
                            sfn3008()
                        } else {
                            sfn30080()
                        }
                    } else {
                        $("#task_name").text('完成');
                        sfn2001()
                    }
                }else{
                    pkid.innerText = t_idx;
                    ifr.src = huayuan_t+"/mfhy/pot/prepOkSow.asp;?sid="+ hs_t_l[t_idx];
                    setTimeout(function () {
                        ifr.src = huayuan_t+"/mfhy/pot/okSow.asp;?sid="+ hs_t_l[t_idx];
                    }, task_time_r)
                    setTimeout(function () {
                        ifr.src = huayuan_t+"/mfhy/pot/okdooper.asp;?sid="+ hs_t_l[t_idx];
                        t_idx++;
                    }, task_time_r*2)
                }
            }, task_time_r*3.2)
        }
        // 一键打理
        function sfn4003 () {
            $("#task_name").text('打理');
            let t_idx = 0
            let tmr = setInterval(function () {
                if (t_idx >= hs_t_l.length) {
                    // console.log('一键打理完成' + getNowTime());
                    clearInterval(tmr);
                    $("#task_name").text('完成');
                    sfn2000()
                }else{
                    pkid.innerText = t_idx;
                    ifr.src = huayuan_t+"/mfhy/pot/okdooper.asp;?sid="+ hs_t_l[t_idx];
                    t_idx++;
                }
            }, task_time_r)
        }
        // 快速合成银色和金色种子
        var hecheng_huaduo_list_quick = [
            // 'o9y200b75', // 金色茉莉花
            // '4rg90get', // 金色蝴蝶花
            // 'ev1900fje', // 银色茉莉花
            // 'ypi101xd' // 银色蝴蝶花
            '6z8467nsj', // 绣球
            'ck6717q2n', // 鸢尾
            'xni2679a8', // 绣球
            'laz5171es' // 鸢尾
        ]
        function sfn40072 (isSet) {
            $("#task_name").text('快速合成');
            shuaMax.innerText = '次数:' + hs_t_l.length
            let count = '100'
            if (isSet) {
                let prompt_text = prompt("请输入兑换数量（默认100）","100");
                if (prompt_text) {
                    count = Number(prompt_text)
                }
            }
            let t_idx = 0
            pkid.innerText = 0;
            indexid.innerText = 0
            let tmr = setInterval(function () {
                if (t_idx >= hs_t_l.length) {
                    clearInterval(tmr);
                    $("#task_name").text('完成');
                    sfn2001();
                }else{
                    pkid.innerText = t_idx;
                    indexid.innerText = 0
                    $.post(huayuan_t+"/mfhy/gmixt/make.asp;?sid="+hs_t_l[t_idx],{
                            count: count,
                            type: '0',
                            id: hecheng_huaduo_list_quick[0],
                        }
                    );
                    setTimeout(function () {
                        indexid.innerText = 1
                        $.post(huayuan_t+"/mfhy/gmixt/make.asp;?sid="+hs_t_l[t_idx],{
                                count: count,
                                type: '0',
                                id: hecheng_huaduo_list_quick[1],
                            }
                        );
                    }, 500)
                    setTimeout(function () {
                        indexid.innerText = 2
                        $.post(huayuan_t+"/mfhy/gmixt/make.asp;?sid="+hs_t_l[t_idx],{
                                count: count,
                                type: '0',
                                id: hecheng_huaduo_list_quick[2],
                            }
                        );
                    }, 1000)
                    setTimeout(function () {
                        indexid.innerText = 3
                        $.post(huayuan_t+"/mfhy/gmixt/make.asp;?sid="+hs_t_l[t_idx],{
                                count: count,
                                type: '0',
                                id: hecheng_huaduo_list_quick[3],
                            }
                        );
                        t_idx++;
                    }, 1500)
                }
            }, 1900)
        }
        // 合成花朵
        var hecheng_huaduo_list = [
            // 下面是银色
            'p7q813s', // 桃花
            'umy1eys', // 兰花
            'zp89btq', // 樱花
            '6nu4mch', // 百合
            'qet55n6q', // 郁金香
            '9ql671oc', // 夜来香
            'ev1900fje', // 茉莉花
            '7jk75ke6', // 萍逢草
            'mqv05a2u', // 水仙花
            '7cx15qnn', // 美人蕉
            'ypi101xd', // 蝴蝶花
            '938523fg', // 八仙花
            'koo9554f6', // 满江花
            '8en110kk5', // 星星之火
            'blj470i1p', // 心花怒放
            'dy6040cc5', // 星光熠熠
            'fdo385sjn', // 杜娟花
            'xni2679a8', // 绣球
            'laz5171es', // 鸢尾
            // 下面是金色
            'pr2454p1', // 百合
            'xuy57166', // 郁金香
            'h3o30q3h', // 夜来香
            'o9y200b75', // 茉莉花
            '1px7723n', // 萍逢草
            'lx207pvl', // 水仙花
            'n0p17b4n', // 美人蕉
            '4rg90get', // 蝴蝶花
            'vpd72_6y', // 八仙花
            'xz3255ddh', // 满江花
            'yzi910rzk', // 星星之火
            'chy670n_a', // 心花怒放
            'qbf840luk', // 星光熠熠
            '5u85859mj', // 杜娟花
            '6z8467nsj', // 绣球
            'ck6717q2n', // 鸢尾
        ]
        function sfn4007 (next) {
            $("#task_name").text('合成花朵');
            // sfn2001()
            let t_idx = 0
            let tmr = setInterval(function () {
                if (t_idx >= hecheng_huaduo_list.length) {
                    // console.log('一键打理完成' + getNowTime());
                    clearInterval(tmr);
                    if (next) {
                        sfn4004(true)
                    } else {
                        $("#task_name").text('完成');
                        sfn2001()
                    }
                }else{
                    indexid.innerText = t_idx;
                    let duihuanItem = hecheng_huaduo_list[t_idx]
                    $.post(huayuan_t+"/mfhy/gmixt/make.asp;?sid="+token_dan,{
                            count: '1',
                            type: '0',
                            id: duihuanItem,
                        }
                    );
                    // t_idx++;
                    setTimeout(() => {
                        $.post(huayuan_t+"/mfhy/gmixt/make.asp;?sid="+token_dan,{
                                count: '50',
                                type: '0',
                                id: duihuanItem,
                            }
                        );
                        t_idx++;
                    }, 500);
                }
            }, 1100)
        }
        // 全量合成
        var hecheng_huaduo_time = ['200', '100', '50', '40', '30', '20', '10', '5', '4', '3', '2', '1']
        let hecheng_index_fir = 0;
        function sfn40073 (next) {
            $("#task_name").text('全量合成');
            if (next) {
                hecheng_index_fir++
            } else {
                shuaMax.innerText = '次数:' + hecheng_huaduo_time.length
            }
            if (hecheng_index_fir >= hecheng_huaduo_time.length) {
                hecheng_index_fir = 0
                sfn40041()
                return
            }
            pkid.innerText = hecheng_index_fir
            sfn400731(hecheng_huaduo_time[hecheng_index_fir], sfn40073)

        }
        function sfn400731 (num, fun) {
            let t_idx = 0
            let tmr = setInterval(function () {
                if (t_idx >= hecheng_huaduo_list.length) {
                    // console.log('一键回收完成' + getNowTime());
                    clearInterval(tmr);
                    if (typeof fun == "function") {
                        fun(true)
                    } else {
                        sfn2001()
                    }
                }else{
                    indexid.innerText = t_idx;
                    let modelId = hecheng_huaduo_list[t_idx]
                    // // console.log(modelId);
                    $.post(huayuan_t+"/mfhy/gmixt/make.asp;?sid="+token_dan,{
                            count: num,
                            type: '0',
                            id: modelId,
                        }
                    );
                    t_idx++;
                }
            }, 500)
        }
        function sfn80034 (isStop) {
            $("#task_name").text('买流光');
            let t_idx = 0
            let tmr = setInterval(function () {
                if (t_idx >= hs_t_l.length) {
                    clearInterval(tmr);
                    if (isStop) {
                        sfn2001()
                    } else {
                        if (localStorage.getItem("hs_xiaohao_model") == 1) {
                            // 小号买黄金花剪
                            sfn80039()
                        } else {
                            // 大号买铂金花剪
                            sfn80038()
                        }
                    }
                }else{
                    indexid.innerText = t_idx;
                    // 流光
                    $.post(huayuan_t+"/mfhy/plaza/buy.asp;?sid="+hs_t_l[t_idx]+"&",{
                            type: '0',
                            subType: '0',
                            id: '12r6753582a',
                            count: '10'
                        }
                    );
                    t_idx++;
                }
            }, 500)
        }
        // 购买黄金花剪
        function sfn80039 (isStop) {
            $("#task_name").text('买黄金花剪');
            let t_idx = 0
            let tmr = setInterval(function () {
                if (t_idx >= hs_t_l.length) {
                    clearInterval(tmr);
                    if (isStop) {
                        sfn2001()
                    } else {
                        sfn8002()
                    }
                }else{
                    indexid.innerText = t_idx;
                    // 黄金花剪
                    $.post(huayuan_t+"/mfhy/plaza/buy.asp;?sid="+hs_t_l[t_idx]+"&",{
                            type: '1',
                            subType: '0',
                            id: 'bq04966j2k',
                            count: '10'
                        }
                    );
                    t_idx++;
                }
            }, 500)
        }
        // 碎片兑换画册
        function sfn800381 (isStop) {
            $("#task_name").text('五一画册兑换');
            let t_idx = 0;
            let tmr = setInterval(function () {
                if (t_idx >= hs_t_l.length) {
                    clearInterval(tmr);
                    if (isStop) {
                        $("#task_name").text('完成');
                        sfn2001()
                    }
                }else{
                    indexid.innerText = t_idx;
                    ifr.src = huayuan_t+"/mfhy/roll/openRoll.asp;?sid="+ hs_t_l[t_idx] +"&id=24&type=0";
                    setTimeout(() => {
                        ifr.src = huayuan_t+"/mfhy/roll/openRoll.asp;?sid="+ hs_t_l[t_idx] +"&id=24&type=1";
                    }, 200);
                    setTimeout(() => {
                        ifr.src = huayuan_t+"/mfhy/roll/openRoll.asp;?sid="+ hs_t_l[t_idx] +"&id=24&type=2";
                    }, 400);
                    setTimeout(() => {
                        ifr.src = huayuan_t+"/mfhy/roll/openRoll.asp;?sid="+ hs_t_l[t_idx] +"&id=24&type=3";
                        t_idx++;
                    }, 600);
                }
            }, 700)
        }
        // 购买梦幻字母礼盒
        function sfn800382 (isStop) {
            $("#task_name").text('买梦幻字母礼盒');
            let t_idx = 0
            let tmr = setInterval(function () {
                if (t_idx >= hs_t_l.length) {
                    clearInterval(tmr);
                    if (isStop) {
                        sfn2001()
                    } else {
                        sfn8002()
                    }
                }else{
                    indexid.innerText = t_idx;
                    // 梦幻字母礼盒
                    $.post(huayuan_t+"/mfhy/plaza/buy.asp;?sid="+hs_t_l[t_idx]+"&",{
                            type: '1',
                            subType: '0',
                            id: 'rmf65535px4',
                            count: '3'
                        }
                    );
                    t_idx++;
                }
            }, 500)
        }
        // 购买五一劳动花、四月天青加画册兑换
        function sfn80038 (isStop) {
            $("#task_name").text('买铂金花剪');
            let t_idx = 0;
            let tmr = setInterval(function () {
                // if (t_idx >= hs_t_l.length) {
                if (t_idx >= 1) { // 只给大号买，其他都不买了
                    clearInterval(tmr);
                    if (isStop) {
                        sfn2001()
                    } else {
                        // sfn80039()
                        sfn800382()
                    }
                }else{
                    indexid.innerText = t_idx;
                    // 五一劳动花
                    $.post(huayuan_t+"/mfhy/plaza/buy.asp;?sid="+hs_t_l[t_idx]+"&",{
                            type: '0',
                            subType: '0',
                            id: 't7h645352gt',
                            count: '50'
                        }
                    );
                    // 四月天青
                    setTimeout(() => {
                        $.post(huayuan_t+"/mfhy/plaza/buy.asp;?sid="+hs_t_l[t_idx]+"&",{
                                type: '0',
                                subType: '0',
                                id: '1_s41535flx',
                                count: '50'
                            }
                        );
                    }, 500);
                    setTimeout(() => {
                        ifr.src = huayuan_t+"/mfhy/roll/openRoll.asp;?sid="+ hs_t_l[t_idx] +"&id=34&type=0";
                    }, 1000);
                    setTimeout(() => {
                        ifr.src = huayuan_t+"/mfhy/roll/openRoll.asp;?sid="+ hs_t_l[t_idx] +"&id=34&type=0";
                    }, 1500);
                    setTimeout(() => {
                        ifr.src = huayuan_t+"/mfhy/roll/openRoll.asp;?sid="+ hs_t_l[t_idx] +"&id=34&type=0";
                    }, 2000);
                    setTimeout(() => {
                        ifr.src = huayuan_t+"/mfhy/roll/openRoll.asp;?sid="+ hs_t_l[t_idx] +"&id=35&type=0";
                    }, 2500);
                    setTimeout(() => {
                        ifr.src = huayuan_t+"/mfhy/roll/openRoll.asp;?sid="+ hs_t_l[t_idx] +"&id=35&type=0";
                    }, 3000);
                    setTimeout(() => {
                        ifr.src = huayuan_t+"/mfhy/roll/openRoll.asp;?sid="+ hs_t_l[t_idx] +"&id=35&type=0";
                        t_idx++;
                    }, 3500);
                }
            }, 4100)
        }
        function sfn80033 () {
            if (shuawan_zengsong == 1) {
                shuawan_zengsong = 0
                localStorage.setItem('shuawan_zengsong', 0)
            } else {
                shuawan_zengsong = 1
                localStorage.setItem('shuawan_zengsong', 1)
            }
            // document.getElementById('shuawan_zengsong_id').innerText = '赠送' + shuawan_zengsong
        }
        function sfn80042 () {
            if (shua_jiaohua == 1) {
                shua_jiaohua = 0
                localStorage.setItem('shua_jiaohua', 0)
            } else {
                shua_jiaohua = 1
                localStorage.setItem('shua_jiaohua', 1)
            }
            document.getElementById('shua_jiaohua_id').innerText = '浇花' + shua_jiaohua
        }
        function sfn80035 () {
            if (hs_xiaohao_model == 1) {
                hs_xiaohao_model = 0
                localStorage.setItem('hs_xiaohao_model', 0)
            } else {
                hs_xiaohao_model = 1
                localStorage.setItem('hs_xiaohao_model', 1)
            }
            localStorage.setItem("hs_token_idx",0);
            $('.xiaohao_model_id').text('小号' + hs_xiaohao_model)
            setTimeout(() => {
                window.location.reload()
            }, 300);
        }
        function sfn80037 () {
            if (hs_cangkun_model == 1) {
                hs_cangkun_model = 0
                localStorage.setItem('hs_cangkun_model', 0)
            } else {
                hs_cangkun_model = 1
                localStorage.setItem('hs_cangkun_model', 1)
            }
            localStorage.setItem("hs_token_idx",0);
            $('.cangkun_model_id').text('仓库' + hs_cangkun_model)
            setTimeout(() => {
                window.location.reload()
            }, 300);
        }
        function sfn80036 () {
            let prompt_text = prompt("请输入化肥数量");
            if (prompt_text) {
                hs_shua_guding_num = Math.floor(prompt_text)
                localStorage.setItem('hs_shua_guding_num', hs_shua_guding_num)
            } else {
                hs_shua_guding_num = 0
                localStorage.setItem('hs_shua_guding_num', 0)
            }
            document.getElementById('shua_guding_num_id').innerText = '刷次' + hs_shua_guding_num
        }
        function sfn800361 () {
            let prompt_text = prompt("请输入单次循环次数");
            if (prompt_text) {
                hs_shua_xunci_num = Math.floor(prompt_text)
                localStorage.setItem('hs_shua_xunci_num', hs_shua_xunci_num)
            } else {
                hs_shua_xunci_num = 0
                localStorage.setItem('hs_shua_xunci_num', 0)
            }
            document.getElementById('shua_xunhuan_num_id').innerText = '循次' + hs_shua_xunci_num
        }
        function sfn800362 () {
            let prompt_text = prompt("请输入连续循环次数");
            if (prompt_text) {
                hs_shua_renwu_num = Math.floor(prompt_text)
                localStorage.setItem('hs_shua_renwu_num', hs_shua_renwu_num)
            } else {
                hs_shua_renwu_num = 0
                localStorage.setItem('hs_shua_renwu_num', 0)
            }
            document.getElementById('shua_renwu_num_id').innerText = '任次' + hs_shua_renwu_num
        }
        // 全量赠送
        var zengsong_huaduo_list = []
        var zengsong_huaduo_time = ['999', '999', '999', '500', '300', '200', '100', '50', '30', '20', '10', '5', '4', '3', '2', '1'];
        // var zengsong_huaduo_time = ['999', '999', '999', '999', '999', '999', '999', '500', '300', '200', '100', '50', '30', '20', '10', '5', '4', '3', '2', '1'];
        // var zengsong_huaduo_time = ['999', '999', '999', '999', '999', '999', '999', '999', '999', '999', '999', '999', '999', '999', '999', '999', '999'];
        // var zengsong_huaduo_time = ['999', '500', '300', '200', '100', '50', '30', '20'];
        // var zengsong_huaduo_time = ['999', '500', '300', '200', '100'];
        // var zengsong_huaduo_time = ['50', '30', '20', '10', '5', '4', '3', '2', '1'];
        // var zengsong_huaduo_time = ['100'];
        let zengsong_index_fir_token_index = 1;
        let zengsong_index_fir = 0;
        // 自动赠送
        function sfn800321 () {
            songwan_hecheng = 2
            pkid.innerText = zengsong_index_fir_token_index
            sfn8003()
        }
        // 手动赠送 - 临时功能开起的手动赠送，需要开五个窗口，执行完再换号赠送
        function sfn80032 () {
            songwan_hecheng = 1
            sfn8003()
        }
        function sfn8003 (next) {
            $("#task_name").text('全量赠送');
            if (is_shua_one_id == 'wi89495_yf') {
                zengsong_huaduo_list = ['f4v59495lyu'] // 流光星辰
            } else if (is_shua_one_id == 'm0k7155psv') {
                zengsong_huaduo_list = ['0p0771552gm', 'ngg571557v4', 'syp07155cgu', '63187155pxz'] // 普通绣球
            } else if (is_shua_one_id == 'c9v0155n1x') {
                zengsong_huaduo_list = ['pst50155f1e'] // 银绣球
            } else if (is_shua_one_id == '1g529258zj') {
                zengsong_huaduo_list = ['xjj0292556u', 'plh12925ez1', 'q5f52925ne9', 'rej82925yvk', 'nmj72925ljg'] // 神树枝
            } else {
                alert("未配置单刷种子ID")
                return
            }
            if (next) {
                zengsong_index_fir++
            } else {
                shuaMax.innerText = '次数:' + zengsong_huaduo_time.length
            }
            if (zengsong_index_fir >= zengsong_huaduo_time.length) {
                zengsong_index_fir = 0
                if (songwan_hecheng == 2) {
                    zengsong_index_fir_token_index++;
                    if (zengsong_index_fir_token_index >= hs_t_l.length) {
                        zengsong_index_fir_token_index = 1
                        $("#task_name").text('赠送完成');
                        sfn2001()
                    } else {
                        pkid.innerText = zengsong_index_fir_token_index
                        sfn8003()
                    }
                } else if (songwan_hecheng == 1) {
                    $("#task_name").text('赠送完成');
                    sfn2001()
                } else {
                    sfn40073()
                }
                return
            }
            pkid.innerText = zengsong_index_fir
            sfn80031(zengsong_huaduo_time[zengsong_index_fir], sfn8003)

        }
        function sfn80031 (num, fun) {
            let t_idx = 0
            let task_token = token_dan
            if (songwan_hecheng == 2) {
                task_token = hs_t_l[zengsong_index_fir_token_index]
            }
            let tmr = setInterval(function () {
                if (t_idx >= zengsong_huaduo_list.length) {
                    // console.log('一键回收完成' + getNowTime());
                    clearInterval(tmr);
                    if (typeof fun == "function") {
                        fun(true)
                    } else {
                        sfn2001()
                    }
                }else{
                    indexid.innerText = t_idx;
                    let modelId = zengsong_huaduo_list[t_idx]
                    // // console.log(modelId);
                    $.post(huayuan_t+"/mfhy/fhouse/giveProd.asp;?sid="+task_token,{
                            count: num,
                            message: '520',
                            type: '0',
                            id: modelId,
                            otherId: '1263966',
                        }
                    );
                    t_idx++;
                }
            }, task_time_r)
        }
        // 每日任务合成一次花朵
        let hecheng_task_index = 0
        function sfn40070 (next) {
            $("#task_name").text('每日合成');
            if (next) {
                hecheng_task_index++
            }
            if (hecheng_task_index >= hs_t_l.length) {
                hecheng_task_index = 0
                // 买流光
                sfn80034()
                return
            }
            pkid.innerText = hecheng_task_index
            sfn40071(hs_t_l[hecheng_task_index], sfn40070)
        }
        // 小号合成用
        var hecheng_huaduo_list_xiaohao = [
            // 下面是金色
            'pr2454p1', // 百合
            '1px7723n', // 萍逢草
            // 下面是银色
            // 'syu7lci', // 野花
            // '5ss5tkd', // 菊花
            // 'iah0s4j', // 梅花
            // 'p7q813s', // 桃花
            // 'umy1eys', // 兰花
            // 'zp89btq', // 樱花
            '6nu4mch', // 百合
            '7jk75ke6', // 萍逢草
        ]
        function sfn40071 (token, fun) {
            let hecheng_list = hecheng_huaduo_list
            if (localStorage.getItem("hs_xiaohao_model") == 1) {
                hecheng_list = hecheng_huaduo_list_xiaohao
            }
            let task_token = token || token_dan
            let t_idx = 0
            let tmr = setInterval(function () {
                if (t_idx >= hecheng_list.length) {
                    clearInterval(tmr);
                    fun(true)
                }else{
                    indexid.innerText = t_idx;
                    let duihuanItem = hecheng_list[t_idx]
                    $.post(huayuan_t+"/mfhy/gmixt/make.asp;?sid="+task_token,{
                            count: '50',
                            type: '0',
                            id: duihuanItem,
                        }
                    );
                    setTimeout(() => {
                        $.post(huayuan_t+"/mfhy/gmixt/make.asp;?sid="+task_token,{
                                count: '30',
                                type: '0',
                                id: duihuanItem,
                            }
                        );
                    }, 500);
                    setTimeout(() => {
                        $.post(huayuan_t+"/mfhy/gmixt/make.asp;?sid="+task_token,{
                                count: '20',
                                type: '0',
                                id: duihuanItem,
                            }
                        );
                    }, 1000);
                    setTimeout(() => {
                        $.post(huayuan_t+"/mfhy/gmixt/make.asp;?sid="+task_token,{
                                count: '10',
                                type: '0',
                                id: duihuanItem,
                            }
                        );
                    }, 1500);
                    setTimeout(() => {
                        $.post(huayuan_t+"/mfhy/gmixt/make.asp;?sid="+task_token,{
                                count: '5',
                                type: '0',
                                id: duihuanItem,
                            }
                        );
                        t_idx++;
                    }, 2000);
                }
            }, 2600)
        }
        /**
         * 需要兑换的材料
         * &id=&type=1&subType=0
         * &id=&type=1&subType=0
         * &id=&type=1&subType=0
         * &id=&type=1&subType=0
         */
         var duihuan_list_cailiao = [
            {id:'ld146hnh', count: '8', name: '矿渣', newname: '莹石'}, // 8矿渣换莹石
            {id:'qqc577caq', count: '3', name: '竹条', newname: '树枝'}, // 3竹条换树枝
            {id:'3z53775ch', count: '8', name: '树枝', newname: '龙葵'}, // 8树枝换龙葵
            {id:'dpt457j7q', count: '8', name: '莹石', newname: '孔雀石'}, // 8莹石换孔雀石
            {id:'jrk55501v', count: '5', name: '蔓草', newname: '亚麻'}, // 5蔓草换亚麻
            {id:'5ck408tj9', count: '10', name: '龙葵', newname: '魔矿石'}, // 10龙葵换魔矿石
            {id:'9s5751c7r', count: '5', name: '孔雀石', newname: '芙蓉石'}, // 5孔雀石换芙蓉石
            {id:'wka6089ml', count: '1', name: '麻线球', newname: '亚麻箱子'}, // 1麻线球换亚麻箱子
            {id:'jza857_bs', count: '8', name: '亚麻', newname: '麻线球'}, // 8亚麻换麻线球
            {id:'2ao96ir1', count: '8', name: '枫叶', newname: '四叶草'}, // 8枫叶换四叶草
            {id:'vg7957ku0', count: '8', name: '四叶草', newname: '红叶'}, // 8四叶草换红叶
            {id:'4zr918qym', count: '1', name: '含羞草', newname: '红枫箱子'}, // 1含羞草换红枫箱子
            {id:'ysk5887qb', count: '1', name: '水晶石', newname: '龙葵箱子'}, // 1水晶石换龙葵箱子
            {id:'36a218s8i', count: '1', name: '鱼鳞石', newname: '含羞草箱子'}, // 1鱼鳞石换含羞草箱子
            {id:'p37388sch', count: '1', name: '鱼鳞石', newname: '孔雀石箱子'}, // 1鱼鳞石换孔雀石箱子
            // {id:'', count: '5', name: ''}, // 竹条
            // {id:'', count: '5', name: ''}, // 矿渣
            // {id:'', count: '5', name: ''}, // 蔓草
            // {id:'', count: '5', name: ''}, // 枫叶
            // {id:'', count: '5', name: ''}, // 红枫
        ]
        function sfn4008 () {
            console.log(document.getElementById('cailiao').style.display)
            if (document.getElementById('cailiao').style.display == 'flex') {
                sfn7003();
            } else {
                document.getElementById('cailiao').style.display = 'flex'
            }
        }
        function sfn40081 () {
            let cailiaoEl = document.querySelector('input[name="cailiaoIndex"]:checked');
            let cailiaoInputEl = document.getElementById('input7')
            if (cailiaoEl && cailiaoInputEl) {
                let cailiaoIndex = Number(cailiaoEl.value)
                let cailiaoNum = cailiaoInputEl.value
                let cailiaoItem = duihuan_list_cailiao[cailiaoIndex]
                document.getElementById('cailiao_newname').innerText = cailiaoItem.newname
                document.getElementById('cailiao_name').innerText = cailiaoItem.name
                document.getElementById('cailiao_duihuan_num').innerText = Math.floor(cailiaoItem.count * cailiaoNum)
            }
        }
        function sfn4004 (next) {
            $("#task_name").text('丢弃花朵');
            let t_idx = 0
            shuaMax.innerText = '次数:' + diuqi_list.length
            let tmr = setInterval(function () {
                if (t_idx >= diuqi_list.length) {
                    // console.log('一键回收完成' + getNowTime());
                    clearInterval(tmr);
                    if (next) {
                        // 暂无下一步任务
                        sfn2001()
                    } else {
                        sfn2001()
                    }
                    $("#task_name").text('完成');
                }else{
                    indexid.innerText = t_idx;
                    let modelId = diuqi_list[t_idx]
                    // // console.log(modelId);
                    $.post(huayuan_t+"/mfhy/fhouse/sell.asp;?sid="+token_dan,{
                            modelId: modelId,
                            count: '999'
                        }
                    );
                    setTimeout(() => {
                        $.post(huayuan_t+"/mfhy/fhouse/sell.asp;?sid="+token_dan,{
                                modelId: modelId,
                                count: '500'
                            }
                        );
                        t_idx++;
                    }, 500);
                }
            }, 1100)
        }
        /**
         * 需要丢弃的花种
         * 
         */
        var diuqi_list = [
            // '8jz76335lsr', 'e5s063350b5', 'qk056335yvy', // 野花
            // 'qxf583355ue', 'ibj08335ndw', '8k378335ktf', // 菊花
            // 'hux79335rch', '00s093356v9', 'vzs59335o8s', // 梅花
            // 'cn677535lkr', 'buy575354tb', 'c6f07535zrj', // 桃花
            // '7jx01535zdg', '714515352hq', 'h9p71535a9e', // 兰花
            '4z871535bx7', '88701535cmg', 'znq515356r4', // 樱花
            // 'h6e58875v3y', '67x088753l5', '9ku78875q6l', // 星光
            // '2p958375vle', 'a4i783757lw', '5qo083756d6', // 心花
            // 'w9m09075isz', '4jr7907597l', 'oxl59075x01', // 星星之火
            // 'he450537syl', 'ycq70537sb9', 'm0g80537fdt', '0ep005379nu', // 美人蕉
            // 'ji087735v5b', '3lo77735csc', 'oqz0773564w', '69t57735q77', // 百合花
            // 'duq05337g99', '8nc75337_tl', 'w_z553379tp', 'lxl85337joe', // 萍逢草
            // 'jf058035c9e', '8zh0803511m', 'uq888035ku3', 'y__78035lqd', // 郁金香
            // 'vbx07835kkt', 's2a8783524i', '0kk778356oi', 'ypz57835v1l', // 夜来香
            // '8da01337suv', '24b513379no', 'z2q81337eq0', '0yp71337ihc', // 水仙花
            // '8iy7573728f', '10b057371kz', 'cp085737spt', '5xv557379l5', // 蝴蝶花
            // 'jyp8957584m', '2rs79575vbz', '8od09575vp7', 'aap595750lb', // 茉莉花
            // 'k2y82435x7g', 'nvp024359o8', 'zhg72435gys', 'm5j52435s4m', // 八仙花
            // '3e857555_mn', 'bv_775555z6', 'q0987555g2x', '3yu07555c87', // 杜鹃花
            // 'yoz771550lo', 'y6a571556p4', 'vrc07155cd6', 't_n871557y1', // 绣球
            // '3cy93836onk', 'ycy438361ue', 'cpb13836fp2', '0un23836_7p', // 鸢尾
            // 粉团花、乌鸢、水晶星光熠熠、金色星光熠熠、水晶心花怒放、金色心花怒放、水晶星星之火、金色星星之火、寒绯樱、麝香百合、萍逢莲
            // 'b8_511553rg', '39s55836bzd', '1k452875r96', 'pcu59875p8f', 'l7252375vv2', 'qq_59375r4r', 'mlf56075h_h', '8ug54075hjm', 'pf452535c7u', 'ltk51735t0q', 'mn958337fls',
        ]
        // 彻底丢弃花朵，900-500-300-200-100-50-20按次数丢弃
        // var clear_huaduo_time = ['900', '500', '300', '200', '100', '50', '30', '20','10', '5', '3', '2', '1']
        var clear_huaduo_time = ['200', '100', '50', '30', '20','10', '5', '3', '2', '1']
        let clear_index_fir = 0;
        function sfn40041 (next) {
            $("#task_name").text('彻底丢弃');
            if (next) {
                clear_index_fir++
            } else {
                shuaMax.innerText = '次数:' + clear_huaduo_time.length
            }
            if (clear_index_fir >= clear_huaduo_time.length) {
                clear_index_fir = 0
                if ((Number(localStorage.getItem("hs_shua_renwu_num")) > 0) && (hs_shua_renwu_num_task < Number(localStorage.getItem("hs_shua_renwu_num")))) {
                    hs_shua_renwu_num_task++;
                    sfn2002();
                    setTimeout(() => {
                        sfn40041()
                    }, 500);
                } else {
                    hs_shua_renwu_num_task = 1;
                    $("#task_name").text('完成');
                }
                // sfn40043()
                return
            }
            pkid.innerText = clear_index_fir
            sfn40042(clear_huaduo_time[clear_index_fir], sfn40041)

        }
        function sfn40042 (num, fun) {
            let t_idx = 0
            let tmr = setInterval(function () {
                if (t_idx >= diuqi_list.length) {
                    // console.log('一键回收完成' + getNowTime());
                    clearInterval(tmr);
                    if (typeof fun == "function") {
                        fun(true)
                    } else {
                        sfn2001()
                    }
                }else{
                    indexid.innerText = t_idx;
                    let modelId = diuqi_list[t_idx]
                    // // console.log(modelId);
                    $.post(huayuan_t+"/mfhy/fhouse/sell.asp;?sid="+token_dan,{
                            modelId: modelId,
                            count: num
                        }
                    );
                    t_idx++;
                }
            }, 150)
        }
                
        /**
         * 需要丢弃的花种（只清理银色和金色和珍品数量大于500的）
         * 
         */
        var diuqi_list_jinyin = [
            '1pr51335i6z', // 野花
            // '', // 菊花
            '0e9523357r7', // 梅花
            '12b53535n8r', // 桃花
            'ira50535b1s', // 兰花
            'zbz59535ho1', // 樱花
            'm3_518757sp', // 星光
            'zjv51375u5g', // 心花
            'bgq52075i3r', // 星星
            'sav58537_ma', // 美人蕉
            '0ic50735i0c', // 百合花
            'ni357337v_j', // 萍逢草
            'hrl51035ynn', // 郁金香
            'k3m508351gr', // 夜来香
            'sr_593376n3', // 水仙花
            'ekn57737d9j', // 蝴蝶花
            '14852575ybq', // 茉莉花
            'k7759875gf3', // 星光
            '80259375hxl', // 心花
            't8a54075o2x', // 星星之火
            'aio515374sv', // 美人蕉
            '6nh587352_r', // 百合花
            '2sp50337o73', // 萍逢草
            '4ea59035b12', // 郁金香
            '7fd58835mpa', // 夜来香
            'p4052337o5y', // 水仙花
            'qy650737zm5', // 蝴蝶花
            '7d2545752bc', // 茉莉花
            'ca152875xxj', // 星光
            'y0n52375104', // 心花
            'hy156075slh', // 星星之火
            'n7c58737oxw', // 美人蕉
            'ydb517357p2', // 百合花
            '814583377ah', // 萍逢草
            'q1652035k1g', // 郁金香
            'i82518352ah', // 夜来香
            'kjf54337deh', // 水仙花
            'cjn59537sv4', // 蝴蝶花
            'mpp565755ka', // 茉莉花
            'kvn58535s9v', // 素冠荷鼎
        ]
        function sfn40043 () {
            $("#task_name").text('丢弃金色珍品');
            let t_idx = 0
            shuaMax.innerText = '次数:' + diuqi_list_jinyin.length
            let tmr = setInterval(function () {
                if (t_idx >= diuqi_list_jinyin.length) {
                    // console.log('一键回收完成' + getNowTime());
                    clearInterval(tmr);
                    if (next) {
                        // 暂无下一步任务
                        sfn2001()
                    } else {
                        sfn2001()
                    }
                }else{
                    indexid.innerText = t_idx;
                    let modelId = diuqi_list_jinyin[t_idx]
                    // // console.log(modelId);
                    $.post(huayuan_t+"/mfhy/fhouse/sell.asp;?sid="+token_dan,{
                            modelId: modelId,
                            count: '500'
                        }
                    );
                    t_idx++;
                }
            }, 500)
        }
        /**
         * 需要丢弃的材料
         */
         var diuqi_list_cailiao = [
            'spa7030jei', // 树枝
            '5rb7730l_x', // 莹石
            '42s5030v0s', // 竹条
            'nul5730usg', // 矿渣
            'rps5330p9z', // 蔓草
            // 'sl65530n5h', // 枫叶
            // 'rm97530fs5', // 四叶草
            // 'r2s8030_ea', // 魔矿石
            // 'jxc87304xc', // 芙蓉石
            // 'oqr8530b3y', // 红枫
            // 'em_0330zr2', // 麻线球
            // 'f8_0030ahq', // 龙葵
            // 'z9t0730sp2', // 孔雀石
            // 'g020530a1d', // 红叶
            // '4ag7330u32', // 亚麻
        ]
        function sfn4005 (token, fun) {
            $("#task_name").text('丢弃材料');
            let t_idx = 0
            let token_task = token || token_dan
            shuaMax.innerText = '次数:' + diuqi_list_cailiao.length
            let tmr = setInterval(function () {
                if (t_idx >= diuqi_list_cailiao.length) {
                    clearInterval(tmr);
                    if (typeof fun == "function") {
                        setTimeout(function () {
                            fun(true)
                        }, 500)
                    }else{
                        sfn2013()
                    }
                }else{
                    indexid.innerText = t_idx;
                    let modelId = diuqi_list_cailiao[t_idx]
                    $.post(huayuan_t+"/mfhy/gbag/sell.asp;?sid="+token_task,{
                            modelId: modelId,
                            count: '999'
                        }
                    );
                    t_idx++;
                }
            }, 500)
        }
        // 批量回收材料
        let huishou_cailiao = 0
        function sfn4006 (setNum) {
            if (setNum) {
                huishou_cailiao++
            }
            if (huishou_cailiao >= hs_t_l.length) {
                huishou_cailiao = 0
                sfn2013()
                return
            }
            pkid.innerText = huishou_cailiao
            sfn4005(hs_t_l[huishou_cailiao], sfn4006)
        }
        // 获取当前时间
        function getNowTime (shijiancuo) {
            let nowTime = shijiancuo ? new Date(Number(shijiancuo)) : new Date()
            let year = nowTime.getFullYear()
            let month = nowTime.getMonth() + 1
            let date = nowTime.getDate()
            let hour = nowTime.getHours()
            let minte = nowTime.getMinutes()
            let secd = nowTime.getSeconds()
            return `${year}-${month}-${date} ${hour}:${minte}:${secd}`
        }
        // 升级花盆
        // /mfhy/pot/urgeStep.asp;?sid=1523637_d4222463663eb99b67ee&potId=c69934a882
        let one_index_self = 0;
        let two_index_self = 0;
        let timer1_self = null
        function sfn3013 () {
            $("#task_name").text('升级花盆');
            pkid.innerText = one_index_self
            let p_l = hs_h_l[one_index_self]
            timer1_self = setInterval(function () {
                indexid.innerText = two_index_self
                ifr.src = huayuan_t+"/mfhy/pot/urgeStep.asp;?sid="+ hs_t_l[one_index_self] +"&potId="+ p_l[two_index_self];
                two_index_self++
                if(two_index_self>=p_l.length){
                    clearInterval(timer1_self);
                    timer1_self = null
                    setTimeout(function(){
                        two_index_self = 0;
                        one_index_self++;
                        ifr.src = huayuan_url + hs_t_l[one_index_self]
                        if(one_index_self<chaizhai_list.length+1){
                            sfn3013()
                        } else {
                            window.location.reload()
                        }
                    }, 500)
                }
            }, 500)
        }
        // 升级花盆单个
        function sfn30131 (next) {
            $("#task_name").text('升级花盆单');
            let t_idx = 0
            let p_l = hs_h_l[token_idx]
            ifr.src = huayuan_t+"/mfhy/pot/okdooper.asp;?sid="+ token_dan;
            let tmr = setInterval(function () {
                if (t_idx >= p_l.length) {
                    clearInterval(tmr);
                    if (next) {
                        sfn30132(true)
                    } else {
                        $("#task_name").text('完成');
                        sfn2001()
                    }
                }else{
                    indexid.innerText = t_idx;
                    ifr.src = huayuan_t+"/mfhy/pot/urgeStep.asp;?sid="+ token_dan +"&potId="+ p_l[t_idx];
                    t_idx++;
                }
            }, 500)
        }
        // 升级花架
        function sfn30132 (next) {
            $("#task_name").text('升级花架');
            ifr.src = huayuan_t+"/mfhy/rack/upgradeRack.asp;?sid="+ token_dan +"&index=0";
            setTimeout(function () {
                ifr.src = huayuan_t+"/mfhy/rack/upgradeRack.asp;?sid="+ token_dan +"&index=1";
            }, 500)
            setTimeout(function () {
                ifr.src = huayuan_t+"/mfhy/rack/upgradeRack.asp;?sid="+ token_dan +"&index=2";
            }, 1000)
            let t_idx = 0
            let tmr = setInterval(function () {
                if (t_idx >= 2) {
                    clearInterval(tmr);
                    if (next) {
                        if (token_idx > 0 && localStorage.getItem("shuawan_zengsong") == 1) {
                            songwan_hecheng = 0
                            sfn8003()
                        } else {
                            sfn40073()
                        }
                    } else {
                        $("#task_name").text('完成');
                        sfn2001()
                    }
                }else{
                    indexid.innerText = t_idx;
                    ifr.src = huayuan_t+"/mfhy/rack/upgradeRack.asp;?sid="+ token_dan +"&index=0";
                    setTimeout(function () {
                        ifr.src = huayuan_t+"/mfhy/rack/upgradeRack.asp;?sid="+ token_dan +"&index=1";
                    }, 500)
                    setTimeout(function () {
                        ifr.src = huayuan_t+"/mfhy/rack/upgradeRack.asp;?sid="+ token_dan +"&index=2";
                        t_idx++;
                    }, 1000)
                }
            }, 1600)
        }
        // 化肥0.5
        var huafeiId1 = 'm6j1538osk' // 小小化肥0.5小时
        var huafeiId2 = '8x55538s1g' // 小化肥1小时
        var huafeiId3 = 'n3j7538drf' // 中化肥3小时
        var huafeiId4 = '12i053832a' // 大化肥10小时
        var huafeiId5 = '56e8538rra' // 超级化肥，直接好
        let shua_maxnum = 1
        let xunci_num = 0;
        function sfn5001 (fun, type) {
            let t_idx = 0
            let p_l = hs_h_l[token_idx]
            // 如果type=1，只刷花盆，type=2，只刷水盆
            if (type === 1) {
                p_l = p_l.slice(0,14)
            }
            if (type === 2) {
                p_l = p_l.slice(14)
            }
            // // console.log(p_l)
            // return
            let tmr = setInterval(function () {
                if (t_idx >= p_l.length) {
                    if (localStorage.getItem("hs_shua_xunci_num") && (xunci_num < Number(localStorage.getItem("hs_shua_xunci_num")))) {
                        t_idx = 0;
                        xunci_num++
                    } else {
                        clearInterval(tmr);
                        xunci_num = 0;
                        if (typeof fun == "function") {
                            if (localStorage.getItem("shua_huajian_id") == 1) {
                                sfn40010()
                                let task_dan_time = Math.floor(p_l.length * task_time + 500)
                                setTimeout(function () {
                                    ifr.src = huayuan_t+"/mfhy/pot/okdooper.asp;?sid="+ token_dan;
                                }, task_dan_time)
                                setTimeout(function () {
                                    fun(true)
                                }, task_dan_time + 500)
                            } else {
                                ifr.src = huayuan_t+"/mfhy/pot/okdooper.asp;?sid="+ token_dan;
                                setTimeout(function () {
                                    fun(true)
                                }, 500)
                            }
                        }else{
                            sfn2001()
                        }
                    }
                }else{
                    indexid.innerText = t_idx;
                    ifr.src = huayuan_t+"/mfhy/pot/urgeProd.asp;?sid="+ token_dan +"&potId="+ p_l[t_idx] + "&toolId=" + huafeiId1;
                    t_idx++;
                }
            }, task_time)
        }
        // 按次数刷化肥0.5
        let shua_type1 = 0
        function sfn50010 (start) {
            if (start === 1) {
                let num = prompt("请输入循环次数，默认1次","");
                if (num === null) {
                    return
                }
                shua_maxnum = !num ? 1 : Number(num)
                shuaMax.innerText = '次数:' + shua_maxnum
            }
            if (shua_type1 >= shua_maxnum) {
                shua_type1 = 0
                sfn2001()
                $("#task_name").text('完成');
                return
            }
            $("#task_name").text('小小化肥');
            pkid.innerText = shua_type1
            let t_idx = 0
            let p_l = hs_h_l[token_idx]
            if (localStorage.getItem("shua_huapen_id") == 1) {
                p_l = hs_h_l[token_idx].slice(0,14);
            }
            if (localStorage.getItem("shua_huapen_id") == 2) {
                p_l = hs_h_l[token_idx].slice(14);
            }
            let tmr = setInterval(function () {
                if (t_idx >= p_l.length) {
                    clearInterval(tmr);
                    shua_type1++
                    sfn50010()
                }else{
                    indexid.innerText = t_idx;
                    ifr.src = huayuan_t+"/mfhy/pot/urgeProd.asp;?sid="+ token_dan +"&potId="+ p_l[t_idx] + "&toolId=" + huafeiId1;
                    t_idx++;
                }
            }, task_time)
        }
        // 化肥1
        function sfn5002 (fun, type) {
            let t_idx = 0
            let p_l = hs_h_l[token_idx]
            // 如果type=1，只刷花盆，type=2，只刷水盆
            if (type === 1) {
                p_l = p_l.slice(0,14)
            }
            if (type === 2) {
                p_l = p_l.slice(14)
            }
            let tmr = setInterval(function () {
                if (t_idx >= p_l.length) {
                    if (localStorage.getItem("hs_shua_xunci_num") && (xunci_num < Number(localStorage.getItem("hs_shua_xunci_num")))) {
                        t_idx = 0;
                        xunci_num++
                    } else {
                        clearInterval(tmr);
                        xunci_num = 0;
                        if (typeof fun == "function") {
                            if (localStorage.getItem("shua_huajian_id") == 1) {
                                sfn40010()
                                let task_dan_time = Math.floor(p_l.length * task_time + 500)
                                setTimeout(function () {
                                    ifr.src = huayuan_t+"/mfhy/pot/okdooper.asp;?sid="+ token_dan;
                                }, task_dan_time)
                                setTimeout(function () {
                                    fun(true)
                                }, task_dan_time + 500)
                            } else {
                                ifr.src = huayuan_t+"/mfhy/pot/okdooper.asp;?sid="+ token_dan;
                                setTimeout(function () {
                                    fun(true)
                                }, 500)
                            }
                        }else{
                            sfn2001()
                        }
                    }
                }else{
                    indexid.innerText = t_idx;
                    ifr.src = huayuan_t+"/mfhy/pot/urgeProd.asp;?sid="+ token_dan +"&potId="+ p_l[t_idx] + "&toolId=" + huafeiId2;
                    t_idx++;
                }
            }, task_time)
        }
        // 按次数刷化肥1
        let shua_type2 = 0
        function sfn50020 (start) {
            if (start === 1) {
                let num = prompt("请输入循环次数，默认1次","");
                if (num === null) {
                    return
                }
                shua_maxnum = !num ? 1 : Number(num)
                shuaMax.innerText = '次数:' + shua_maxnum
            }
            if (shua_type2 >= shua_maxnum) {
                shua_type2 = 0
                $("#task_name").text('完成');
                sfn2001()
                return
            }
            $("#task_name").text('小化肥');
            pkid.innerText = shua_type2
            let t_idx = 0
            let p_l = hs_h_l[token_idx]
            if (localStorage.getItem("shua_huapen_id") == 1) {
                p_l = hs_h_l[token_idx].slice(0,14);
            }
            if (localStorage.getItem("shua_huapen_id") == 2) {
                p_l = hs_h_l[token_idx].slice(14);
            }
            let tmr = setInterval(function () {
                if (t_idx >= p_l.length) {
                    clearInterval(tmr);
                    shua_type2++
                    sfn50020()
                }else{
                    indexid.innerText = t_idx;
                    ifr.src = huayuan_t+"/mfhy/pot/urgeProd.asp;?sid="+ token_dan +"&potId="+ p_l[t_idx] + "&toolId=" + huafeiId2;
                    t_idx++;
                }
            }, task_time)
        }
        // 化肥3
        function sfn5003 (fun, type) {
            let t_idx = 0
            let p_l = hs_h_l[token_idx]
            // 如果type=1，只刷花盆，type=2，只刷水盆
            if (type === 1) {
                p_l = p_l.slice(0,14)
            }
            if (type === 2) {
                p_l = p_l.slice(14)
            }
            let tmr = setInterval(function () {
                if (t_idx >= p_l.length) {
                    if (localStorage.getItem("hs_shua_xunci_num") && (xunci_num < Number(localStorage.getItem("hs_shua_xunci_num")))) {
                        t_idx = 0;
                        xunci_num++
                    } else {
                        clearInterval(tmr);
                        xunci_num = 0;
                        if (typeof fun == "function") {
                            if (localStorage.getItem("shua_huajian_id") == 1) {
                                sfn40010()
                                let task_dan_time = Math.floor(p_l.length * task_time + 500)
                                setTimeout(function () {
                                    ifr.src = huayuan_t+"/mfhy/pot/okdooper.asp;?sid="+ token_dan;
                                }, task_dan_time)
                                setTimeout(function () {
                                    fun(true)
                                }, task_dan_time + 500)
                            } else {
                                ifr.src = huayuan_t+"/mfhy/pot/okdooper.asp;?sid="+ token_dan;
                                setTimeout(function () {
                                    fun(true)
                                }, 500)
                            }
                        }else{
                            sfn2001()
                        }
                    }
                }else{
                    indexid.innerText = t_idx;
                    ifr.src = huayuan_t+"/mfhy/pot/urgeProd.asp;?sid="+ token_dan +"&potId="+ p_l[t_idx] + "&toolId=" + huafeiId3;
                    t_idx++;
                    // 临时加更任务，多使用一遍小化肥
                    // setTimeout(() => {
                    //     ifr.src = huayuan_t+"/mfhy/pot/urgeProd.asp;?sid="+ token_dan +"&potId="+ p_l[t_idx] + "&toolId=" + huafeiId2;
                    //     t_idx++;
                    // }, task_time);
                }
            }, task_time)
        }
        // 按次数刷化肥3
        let shua_type3 = 0
        function sfn50030 (start) {
            if (start === 1) {
                let num = prompt("请输入循环次数，默认1次","");
                if (num === null) {
                    return
                }
                shua_maxnum = !num ? 1 : Number(num)
                shuaMax.innerText = '次数:' + shua_maxnum
            }
            if (shua_type3 >= shua_maxnum) {
                shua_type3 = 0
                $("#task_name").text('完成');
                sfn2001()
                return
            }
            $("#task_name").text('中化肥');
            pkid.innerText = shua_type3
            let t_idx = 0
            let p_l = hs_h_l[token_idx]
            if (localStorage.getItem("shua_huapen_id") == 1) {
                p_l = hs_h_l[token_idx].slice(0,14);
            }
            if (localStorage.getItem("shua_huapen_id") == 2) {
                p_l = hs_h_l[token_idx].slice(14);
            }
            let tmr = setInterval(function () {
                if (t_idx >= p_l.length) {
                    clearInterval(tmr);
                    shua_type3++
                    sfn50030()
                }else{
                    indexid.innerText = t_idx;
                    ifr.src = huayuan_t+"/mfhy/pot/urgeProd.asp;?sid="+ token_dan +"&potId="+ p_l[t_idx] + "&toolId=" + huafeiId3;
                    t_idx++;
                }
            }, task_time)
        }
        // 化肥10
        function sfn5004 (fun, type) {
            let t_idx = 0
            let p_l = hs_h_l[token_idx]
            // 如果type=1，只刷花盆，type=2，只刷水盆
            if (type === 1) {
                p_l = p_l.slice(0,14)
            }
            if (type === 2) {
                p_l = p_l.slice(14)
            }
            let tmr = setInterval(function () {
                if (t_idx >= p_l.length) {
                    if (localStorage.getItem("hs_shua_xunci_num") && (xunci_num < Number(localStorage.getItem("hs_shua_xunci_num")))) {
                        t_idx = 0;
                        xunci_num++
                    } else {
                        clearInterval(tmr);
                        xunci_num = 0;
                        if (typeof fun == "function") {
                            if (localStorage.getItem("shua_huajian_id") == 1) {
                                sfn40010()
                                let task_dan_time = Math.floor(p_l.length * task_time + 500)
                                setTimeout(function () {
                                    ifr.src = huayuan_t+"/mfhy/pot/okdooper.asp;?sid="+ token_dan;
                                }, task_dan_time)
                                setTimeout(function () {
                                    fun(true)
                                }, task_dan_time + 500)
                            } else {
                                ifr.src = huayuan_t+"/mfhy/pot/okdooper.asp;?sid="+ token_dan;
                                setTimeout(function () {
                                    fun(true)
                                }, 500)
                            }
                        }else{
                            sfn2001()
                        }
                    }
                }else{
                    indexid.innerText = t_idx;
                    ifr.src = huayuan_t+"/mfhy/pot/urgeProd.asp;?sid="+ token_dan +"&potId="+ p_l[t_idx] + "&toolId=" + huafeiId4;
                    t_idx++;
                    // 临时加更任务，多使用一遍小化肥
                    // setTimeout(() => {
                    //     ifr.src = huayuan_t+"/mfhy/pot/urgeProd.asp;?sid="+ token_dan +"&potId="+ p_l[t_idx] + "&toolId=" + huafeiId3;
                    //     t_idx++;
                    // }, task_time);
                }
            }, task_time)
        }
        // 超级化肥
        function sfn5005 (fun, type) {
            let t_idx = 0
            let p_l = hs_h_l[token_idx]
            // 如果type=1，只刷花盆，type=2，只刷水盆
            if (type === 1) {
                p_l = p_l.slice(0,14)
            }
            if (type === 2) {
                p_l = p_l.slice(14)
            }
            let tmr = setInterval(function () {
                if (t_idx >= p_l.length) {
                    clearInterval(tmr);
                    if (typeof fun == "function") {
                        if (localStorage.getItem("shua_huajian_id") == 1) {
                            sfn40010()
                            let task_dan_time = Math.floor(p_l.length * task_time + 500)
                            setTimeout(function () {
                                ifr.src = huayuan_t+"/mfhy/pot/okdooper.asp;?sid="+ token_dan;
                            }, task_dan_time)
                            setTimeout(function () {
                                fun(true)
                            }, task_dan_time + 500)
                        } else {
                            ifr.src = huayuan_t+"/mfhy/pot/okdooper.asp;?sid="+ token_dan;
                            setTimeout(function () {
                                fun(true)
                            }, 500)
                        }
                    }else{
                        sfn2001()
                    }
                }else{
                    indexid.innerText = t_idx;
                    ifr.src = huayuan_t+"/mfhy/pot/urgeProd.asp;?sid="+ token_dan +"&potId="+ p_l[t_idx] + "&toolId=" + huafeiId5;
                    t_idx++;
                }
            }, task_time)
        }
        // 按次数刷化肥10
        let shua_type4 = 0
        function sfn50040 (start) {
            if (start === 1) {
                let num = prompt("请输入循环次数，默认1次","");
                if (num === null) {
                    return
                }
                shua_maxnum = !num ? 1 : Number(num)
                shuaMax.innerText = '次数:' + shua_maxnum
            }
            if (shua_type4 >= shua_maxnum) {
                shua_type4 = 0
                $("#task_name").text('完成');
                sfn2001()
                return
            }
            $("#task_name").text('刷大化肥');
            pkid.innerText = shua_type4
            let t_idx = 0
            let p_l = hs_h_l[token_idx]
            if (localStorage.getItem("shua_huapen_id") == 1) {
                p_l = hs_h_l[token_idx].slice(0,14);
            }
            if (localStorage.getItem("shua_huapen_id") == 2) {
                p_l = hs_h_l[token_idx].slice(14);
            }
            let tmr = setInterval(function () {
                if (t_idx >= p_l.length) {
                    clearInterval(tmr);
                    shua_type4++
                    sfn50040()
                }else{
                    indexid.innerText = t_idx;
                    ifr.src = huayuan_t+"/mfhy/pot/urgeProd.asp;?sid="+ token_dan +"&potId="+ p_l[t_idx] + "&toolId=" + huafeiId4;
                    t_idx++;
                }
            }, task_time)
        }
        // 超级化肥
        function sfn50050 (fun) {
            $("#task_name").text('超级化肥');
            let t_idx = 0
            let p_l = hs_h_l[token_idx]
            if (localStorage.getItem("shua_huapen_id") == 1) {
                p_l = hs_h_l[token_idx].slice(0,14);
            }
            if (localStorage.getItem("shua_huapen_id") == 2) {
                p_l = hs_h_l[token_idx].slice(14);
            }
            let tmr = setInterval(function () {
                if (t_idx >= p_l.length) {
                    clearInterval(tmr);
                    if (typeof fun == "function") {
                        if (localStorage.getItem("shua_huajian_id") == 1) {
                            sfn40010()
                            let task_dan_time = Math.floor(p_l.length * task_time + 500)
                            setTimeout(function () {
                                ifr.src = huayuan_t+"/mfhy/pot/okdooper.asp;?sid="+ token_dan;
                            }, task_dan_time)
                            setTimeout(function () {
                                fun(true)
                            }, task_dan_time + 500)
                        } else {
                            ifr.src = huayuan_t+"/mfhy/pot/okdooper.asp;?sid="+ token_dan;
                            setTimeout(function () {
                                fun(true)
                            }, 500)
                        }
                    }else{
                        $("#task_name").text('完成');
                        sfn2001()
                    }
                }else{
                    indexid.innerText = t_idx;
                    ifr.src = huayuan_t+"/mfhy/pot/urgeProd.asp;?sid="+ token_dan +"&potId="+ p_l[t_idx] + "&toolId=" + huafeiId5;
                    t_idx++;
                }
            }, task_time)
        }
        // 刷梅花
        let shua_meihua = 0
        function sfn6001 (setNum) {
            if (localStorage.getItem("shua_huapen_id") == 1) {
                sfn6101(30)
                return
            }
            if (localStorage.getItem("shua_huapen_id") == 2) {
                sfn6201(30)
                return
            }
            if (typeof setNum =="number") {
                let guding_num = localStorage.getItem("hs_shua_guding_num")
                let huafei_num = 0
                if (Number(guding_num) > 0) {
                    huafei_num = guding_num
                } else {
                    let huafei_num_input = prompt("请输入小小化肥数量","");
                    if (huafei_num_input === null) {
                        return
                    } else {
                        huafei_num = huafei_num_input
                    }
                }
                huafei_num = huafei_num ? huafei_num : 1
                shua_maxnum = Math.ceil(huafei_num / hs_h_l[token_idx].length)
                if (localStorage.getItem("hs_shua_xunci_num") && (Number(localStorage.getItem("hs_shua_xunci_num")) > 0)) {
                    shua_maxnum = Math.ceil(shua_maxnum / (Number(localStorage.getItem("hs_shua_xunci_num"))+1))
                } else {
                    shua_maxnum = Number(shua_maxnum)
                }
                shuaMax.innerText = '次数:' + shua_maxnum
            }
            if (shua_meihua >= shua_maxnum) {
                // console.log('梅花已刷完');
                shua_meihua = 0
                // sfn2001()
                if (localStorage.getItem("shuawan_stop_huafei") == 1) {
                    if ((Number(localStorage.getItem("hs_shua_renwu_num")) > 0) && (hs_shua_renwu_num_task < Number(localStorage.getItem("hs_shua_renwu_num")))) {
                        hs_shua_renwu_num_task++;
                        sfn2002();
                        setTimeout(() => {
                            sfn6001(30)
                        }, 500);
                    } else {
                        hs_shua_renwu_num_task = 1;
                        $("#task_name").text('完成');
                        sfn2001()
                    }
                } else {
                    sfn30131(true)
                }
                return
            }
            $("#task_name").text('刷小小化肥');
            pkid.innerText = shua_meihua
            // console.log('开始刷桃花，次数：' + (shua_meihua + 1));
            setTimeout(function () {
                ifr.src = huayuan_t+"/mfhy/pot/prepOkSow.asp;?sid="+ token_dan;
            }, 500)
            setTimeout(function () {
                ifr.src = huayuan_t+"/mfhy/pot/okSow.asp;?sid="+ token_dan;
            }, 1000)
            setTimeout(function () {
                if (localStorage.getItem("shua_jiaohua") == 1) {
                    ifr.src = huayuan_t+"/mfhy/pot/okdooper.asp;?sid="+ token_dan;
                }
            }, 1500)
            setTimeout(function () {
                shua_meihua++
                sfn5001(sfn6001)
            }, 2000)
        }
        // 刷花盆0.5
        let shua_huapen_1 = 0
        function sfn6101 (setNum) {
            if (typeof setNum =="number") {
                let guding_num = localStorage.getItem("hs_shua_guding_num")
                let huafei_num = 0
                if (Number(guding_num) > 0) {
                    huafei_num = guding_num
                } else {
                    let huafei_num_input = prompt("请输入小小化肥数量","");
                    if (huafei_num_input === null) {
                        return
                    } else {
                        huafei_num = huafei_num_input
                    }
                }
                let p_l = hs_h_l[token_idx].slice(0,14)
                huafei_num = huafei_num ? huafei_num : 1
                shua_maxnum = Math.ceil(huafei_num / p_l.length)
                if (localStorage.getItem("hs_shua_xunci_num") && (Number(localStorage.getItem("hs_shua_xunci_num")) > 0)) {
                    shua_maxnum = Math.ceil(shua_maxnum / (Number(localStorage.getItem("hs_shua_xunci_num"))+1))
                } else {
                    shua_maxnum = Number(shua_maxnum)
                }
                shuaMax.innerText = '次数:' + shua_maxnum
                // // console.log(p_l)
                // return
            }
            if (shua_huapen_1 >= shua_maxnum) {
                // console.log('花盆0.5已刷完');
                shua_huapen_1 = 0
                if (localStorage.getItem("shuawan_stop_huapen") == 1) {
                    if ((Number(localStorage.getItem("hs_shua_renwu_num")) > 0) && (hs_shua_renwu_num_task < Number(localStorage.getItem("hs_shua_renwu_num")))) {
                        hs_shua_renwu_num_task++;
                        sfn2002();
                        setTimeout(() => {
                            sfn6101(30)
                        }, 500);
                    } else {
                        hs_shua_renwu_num_task = 1;
                        $("#task_name").text('完成');
                        sfn2001()
                    }
                } else {
                    sfn30131(true)
                }
                return
            }
            $("#task_name").text('刷小小化肥');
            pkid.innerText = shua_huapen_1
            // console.log('开始刷花盆0.5，次数：' + (shua_huapen_1 + 1));
            setTimeout(function () {
                if (is_shua_one_id) {
                    ifr.src = huayuan_t+"/mfhy/pot/prepOkSeed.asp;?sid="+token_dan+"&seedId=" + is_shua_one_id;
                } else {
                    ifr.src = huayuan_t+"/mfhy/pot/prepOkSow.asp;?sid="+ token_dan;
                }
            }, 500)
            setTimeout(function () {
                ifr.src = huayuan_t+"/mfhy/pot/okSow.asp;?sid="+ token_dan;
            }, 1000)
            setTimeout(function () {
                if (localStorage.getItem("shua_jiaohua") == 1) {
                    ifr.src = huayuan_t+"/mfhy/pot/okdooper.asp;?sid="+ token_dan;
                }
            }, 1500)
            setTimeout(function () {
                shua_huapen_1++
                sfn5001(sfn6101, 1)
            }, 2000)
        }
        // 刷水盆0.5
        let shua_shuipen_1 = 0
        function sfn6201 (setNum) {
            if (typeof setNum =="number") {
                let guding_num = localStorage.getItem("hs_shua_guding_num")
                let huafei_num = 0
                if (Number(guding_num) > 0) {
                    huafei_num = guding_num
                } else {
                    let huafei_num_input = prompt("请输入小小化肥数量","");
                    if (huafei_num_input === null) {
                        return
                    } else {
                        huafei_num = huafei_num_input
                    }
                }
                let p_l = hs_h_l[token_idx].slice(14)
                huafei_num = huafei_num ? huafei_num : 1
                shua_maxnum = Math.ceil(huafei_num / p_l.length)
                if (localStorage.getItem("hs_shua_xunci_num") && (Number(localStorage.getItem("hs_shua_xunci_num")) > 0)) {
                    shua_maxnum = Math.ceil(shua_maxnum / (Number(localStorage.getItem("hs_shua_xunci_num"))+1))
                } else {
                    shua_maxnum = Number(shua_maxnum)
                }
                shuaMax.innerText = '次数:' + shua_maxnum
                // // console.log(p_l)
                // return
            }
            if (shua_shuipen_1 >= shua_maxnum) {
                // console.log('水盆0.5已刷完');
                shua_shuipen_1 = 0
                if (localStorage.getItem("shuawan_stop_shuipen") == 1) {
                    if ((Number(localStorage.getItem("hs_shua_renwu_num")) > 0) && (hs_shua_renwu_num_task < Number(localStorage.getItem("hs_shua_renwu_num")))) {
                        hs_shua_renwu_num_task++;
                        sfn2002();
                        setTimeout(() => {
                            sfn6201(30)
                        }, 500);
                    } else {
                        hs_shua_renwu_num_task = 1;
                        $("#task_name").text('完成');
                        sfn2001()
                    }
                } else {
                    sfn30131(true)
                }
                return
            }
            $("#task_name").text('刷小小化肥');
            pkid.innerText = shua_shuipen_1
            // console.log('开始刷水盆0.5，次数：' + (shua_shuipen_1 + 1));
            setTimeout(function () {
                if (is_shua_one_id) {
                    ifr.src = huayuan_t+"/mfhy/pot/prepOkSeed.asp;?sid="+token_dan+"&seedId=" + is_shua_one_id;
                } else {
                    ifr.src = huayuan_t+"/mfhy/pot/prepOkSow.asp;?sid="+ token_dan;
                }
            }, 500)
            setTimeout(function () {
                ifr.src = huayuan_t+"/mfhy/pot/okSow.asp;?sid="+ token_dan;
            }, 1000)
            setTimeout(function () {
                if (localStorage.getItem("shua_jiaohua") == 1) {
                    ifr.src = huayuan_t+"/mfhy/pot/okdooper.asp;?sid="+ token_dan;
                }
            }, 1500)
            if (localStorage.getItem("shua_huapen_id") == 2) {
                // setTimeout(function () {
                //     sfn00081('290');
                // }, 2000)
                setTimeout(function () {
                    shua_shuipen_1++
                    sfn5001(sfn6201, 2)
                }, 2000) // (2000 + task_time_r * 10)
            } else {
                setTimeout(function () {
                    shua_shuipen_1++
                    sfn5001(sfn6201, 2)
                }, 2000)
            }
        }
        // 刷桃花
        let shua_taohua = 0
        function sfn6002 (setNum) {
            if (localStorage.getItem("shua_huapen_id") == 1) {
                sfn6102(30)
                return
            }
            if (localStorage.getItem("shua_huapen_id") == 2) {
                sfn6202(30)
                return
            }
            if (typeof setNum =="number") {
                let guding_num = localStorage.getItem("hs_shua_guding_num")
                let huafei_num = 0
                if (Number(guding_num) > 0) {
                    huafei_num = guding_num
                } else {
                    let huafei_num_input = prompt("请输入小化肥数量","");
                    if (huafei_num_input === null) {
                        return
                    } else {
                        huafei_num = huafei_num_input
                    }
                }
                huafei_num = huafei_num ? huafei_num : 1
                shua_maxnum = Math.ceil(huafei_num / hs_h_l[token_idx].length)
                if (localStorage.getItem("hs_shua_xunci_num") && (Number(localStorage.getItem("hs_shua_xunci_num")) > 0)) {
                    shua_maxnum = Math.ceil(shua_maxnum / (Number(localStorage.getItem("hs_shua_xunci_num"))+1))
                } else {
                    shua_maxnum = Number(shua_maxnum)
                }
                shuaMax.innerText = '次数:' + shua_maxnum
            }
            if (shua_taohua >= shua_maxnum) {
                // console.log('桃花已刷完');
                shua_taohua = 0
                // sfn2001()
                if (localStorage.getItem("shuawan_stop_huafei") == 1) {
                    if ((Number(localStorage.getItem("hs_shua_renwu_num")) > 0) && (hs_shua_renwu_num_task < Number(localStorage.getItem("hs_shua_renwu_num")))) {
                        hs_shua_renwu_num_task++;
                        sfn2002();
                        setTimeout(() => {
                            sfn6002(30)
                        }, 500);
                    } else {
                        hs_shua_renwu_num_task = 1;
                        $("#task_name").text('完成');
                        sfn2001()
                    }
                } else {
                    sfn30131(true)
                }
                return
            }
            $("#task_name").text('刷小化肥');
            pkid.innerText = shua_taohua
            // console.log('开始刷桃花，次数：' + (shua_taohua + 1));
            setTimeout(function () {
                ifr.src = huayuan_t+"/mfhy/pot/prepOkSow.asp;?sid="+ token_dan;
            }, 500)
            setTimeout(function () {
                ifr.src = huayuan_t+"/mfhy/pot/okSow.asp;?sid="+ token_dan;
            }, 1000)
            setTimeout(function () {
                if (localStorage.getItem("shua_jiaohua") == 1) {
                    ifr.src = huayuan_t+"/mfhy/pot/okdooper.asp;?sid="+ token_dan;
                }
            }, 1500)
            setTimeout(function () {
                shua_taohua++
                sfn5002(sfn6002)
            }, 2000)
        }
        // 刷花盆1
        let shua_huapen_2 = 0
        function sfn6102 (setNum) {
            if (typeof setNum =="number") {
                let guding_num = localStorage.getItem("hs_shua_guding_num")
                let huafei_num = 0
                if (Number(guding_num) > 0) {
                    huafei_num = guding_num
                } else {
                    let huafei_num_input = prompt("请输入小化肥数量","");
                    if (huafei_num_input === null) {
                        return
                    } else {
                        huafei_num = huafei_num_input
                    }
                }
                let p_l = hs_h_l[token_idx].slice(0,14)
                huafei_num = huafei_num ? huafei_num : 1
                shua_maxnum = Math.ceil(huafei_num / p_l.length)
                if (localStorage.getItem("hs_shua_xunci_num") && (Number(localStorage.getItem("hs_shua_xunci_num")) > 0)) {
                    shua_maxnum = Math.ceil(shua_maxnum / (Number(localStorage.getItem("hs_shua_xunci_num"))+1))
                } else {
                    shua_maxnum = Number(shua_maxnum)
                }
                shuaMax.innerText = '次数:' + shua_maxnum
            }
            if (shua_huapen_2 >= shua_maxnum) {
                // console.log('花盆1已刷完');
                shua_huapen_2 = 0
                if (localStorage.getItem("shuawan_stop_huapen") == 1) {
                    if ((Number(localStorage.getItem("hs_shua_renwu_num")) > 0) && (hs_shua_renwu_num_task < Number(localStorage.getItem("hs_shua_renwu_num")))) {
                        hs_shua_renwu_num_task++;
                        sfn2002();
                        setTimeout(() => {
                            sfn6102(30)
                        }, 500);
                    } else {
                        hs_shua_renwu_num_task = 1;
                        $("#task_name").text('完成');
                        sfn2001()
                    }
                } else {
                    sfn30131(true)
                }
                return
            }
            $("#task_name").text('刷小化肥');
            pkid.innerText = shua_huapen_2
            // console.log('开始刷花盆1，次数：' + (shua_huapen_2 + 1));
            setTimeout(function () {
                if (is_shua_one_id) {
                    ifr.src = huayuan_t+"/mfhy/pot/prepOkSeed.asp;?sid="+token_dan+"&seedId=" + is_shua_one_id;
                } else {
                    ifr.src = huayuan_t+"/mfhy/pot/prepOkSow.asp;?sid="+ token_dan;
                }
            }, 500)
            setTimeout(function () {
                ifr.src = huayuan_t+"/mfhy/pot/okSow.asp;?sid="+ token_dan;
            }, 1000)
            setTimeout(function () {
                if (localStorage.getItem("shua_jiaohua") == 1) {
                    ifr.src = huayuan_t+"/mfhy/pot/okdooper.asp;?sid="+ token_dan;
                }
            }, 1500)
            setTimeout(function () {
                shua_huapen_2++
                sfn5002(sfn6102, 1)
            }, 2000)
        }
        // 刷水盆1
        let shua_shuipen_2 = 0
        function sfn6202 (setNum) {
            if (typeof setNum =="number") {
                let guding_num = localStorage.getItem("hs_shua_guding_num")
                let huafei_num = 0
                if (Number(guding_num) > 0) {
                    huafei_num = guding_num
                } else {
                    let huafei_num_input = prompt("请输入小化肥数量","");
                    if (huafei_num_input === null) {
                        return
                    } else {
                        huafei_num = huafei_num_input
                    }
                }
                let p_l = hs_h_l[token_idx].slice(14)
                huafei_num = huafei_num ? huafei_num : 1
                shua_maxnum = Math.ceil(huafei_num / p_l.length)
                if (localStorage.getItem("hs_shua_xunci_num") && (Number(localStorage.getItem("hs_shua_xunci_num")) > 0)) {
                    shua_maxnum = Math.ceil(shua_maxnum / (Number(localStorage.getItem("hs_shua_xunci_num"))+1))
                } else {
                    shua_maxnum = Number(shua_maxnum)
                }
                shuaMax.innerText = '次数:' + shua_maxnum
            }
            if (shua_shuipen_2 >= shua_maxnum) {
                // console.log('水盆1已刷完');
                shua_shuipen_2 = 0
                if (localStorage.getItem("shuawan_stop_shuipen") == 1) {
                    if ((Number(localStorage.getItem("hs_shua_renwu_num")) > 0) && (hs_shua_renwu_num_task < Number(localStorage.getItem("hs_shua_renwu_num")))) {
                        hs_shua_renwu_num_task++;
                        sfn2002();
                        setTimeout(() => {
                            sfn6202(30)
                        }, 500);
                    } else {
                        hs_shua_renwu_num_task = 1;
                        $("#task_name").text('完成');
                        sfn2001()
                    }
                } else {
                    sfn30131(true)
                }
                return
            }
            $("#task_name").text('刷小化肥');
            pkid.innerText = shua_shuipen_2
            // console.log('开始刷水盆1，次数：' + (shua_shuipen_2 + 1));
            setTimeout(function () {
                if (is_shua_one_id) {
                    ifr.src = huayuan_t+"/mfhy/pot/prepOkSeed.asp;?sid="+token_dan+"&seedId=" + is_shua_one_id;
                } else {
                    ifr.src = huayuan_t+"/mfhy/pot/prepOkSow.asp;?sid="+ token_dan;
                }
            }, 500)
            setTimeout(function () {
                ifr.src = huayuan_t+"/mfhy/pot/okSow.asp;?sid="+ token_dan;
            }, 1000)
            setTimeout(function () {
                if (localStorage.getItem("shua_jiaohua") == 1) {
                    ifr.src = huayuan_t+"/mfhy/pot/okdooper.asp;?sid="+ token_dan;
                }
            }, 1500)
            if (localStorage.getItem("shua_huapen_id") == 2) {
                // setTimeout(function () {
                //     sfn00081('290');
                // }, 2000)
                setTimeout(function () {
                    shua_shuipen_2++
                    sfn5002(sfn6202, 2)
                }, 2000) // (2000 + task_time_r * 10)
            } else {
                setTimeout(function () {
                    shua_shuipen_2++
                    sfn5002(sfn6202, 2)
                }, 2000)
            }
        }
        // 刷百合
        let shua_baike = 0
        function sfn6003 (setNum) {
            if (localStorage.getItem("shua_huapen_id") == 1) {
                sfn6103(30)
                return
            }
            if (localStorage.getItem("shua_huapen_id") == 2) {
                sfn6203(30)
                return
            }
            if (typeof setNum =="number") {
                let guding_num = localStorage.getItem("hs_shua_guding_num")
                let huafei_num = 0
                if (Number(guding_num) > 0) {
                    huafei_num = guding_num
                } else {
                    let huafei_num_input = prompt("请输入中化肥数量","");
                    if (huafei_num_input === null) {
                        return
                    } else {
                        huafei_num = huafei_num_input
                    }
                }
                huafei_num = huafei_num ? huafei_num : 1
                shua_maxnum = Math.ceil(huafei_num / hs_h_l[token_idx].length)
                if (localStorage.getItem("hs_shua_xunci_num") && (Number(localStorage.getItem("hs_shua_xunci_num")) > 0)) {
                    shua_maxnum = Math.ceil(shua_maxnum / (Number(localStorage.getItem("hs_shua_xunci_num"))+1))
                } else {
                    shua_maxnum = Number(shua_maxnum)
                }
                shuaMax.innerText = '次数:' + shua_maxnum
            }
            if (shua_baike >= shua_maxnum) {
                // console.log('百合已刷完');
                shua_baike = 0
                // sfn2001()
                if (localStorage.getItem("shuawan_stop_huafei") == 1) {
                    if ((Number(localStorage.getItem("hs_shua_renwu_num")) > 0) && (hs_shua_renwu_num_task < Number(localStorage.getItem("hs_shua_renwu_num")))) {
                        hs_shua_renwu_num_task++;
                        sfn2002();
                        setTimeout(() => {
                            sfn6003(30)
                        }, 500);
                    } else {
                        hs_shua_renwu_num_task = 1;
                        $("#task_name").text('完成');
                        sfn2001()
                    }
                } else {
                    sfn30131(true)
                }
                return
            }
            $("#task_name").text('刷中化肥');
            pkid.innerText = shua_baike
            // console.log('开始刷桃花，次数：' + (shua_baike + 1));
            setTimeout(function () {
                ifr.src = huayuan_t+"/mfhy/pot/prepOkSow.asp;?sid="+ token_dan;
            }, 500)
            setTimeout(function () {
                ifr.src = huayuan_t+"/mfhy/pot/okSow.asp;?sid="+ token_dan;
            }, 1000)
            setTimeout(function () {
                if (localStorage.getItem("shua_jiaohua") == 1) {
                    ifr.src = huayuan_t+"/mfhy/pot/okdooper.asp;?sid="+ token_dan;
                }
            }, 1500)
            setTimeout(function () {
                shua_baike++
                sfn5003(sfn6003)
            }, 2000)
        }
        // 刷花盆3
        let shua_huapen_3 = 0
        function sfn6103 (setNum) {
            if (typeof setNum =="number") {
                let guding_num = localStorage.getItem("hs_shua_guding_num")
                let huafei_num = 0
                if (Number(guding_num) > 0) {
                    huafei_num = guding_num
                } else {
                    let huafei_num_input = prompt("请输入中化肥数量","");
                    if (huafei_num_input === null) {
                        return
                    } else {
                        huafei_num = huafei_num_input
                    }
                }
                let p_l = hs_h_l[token_idx].slice(0,14)
                huafei_num = huafei_num ? huafei_num : 1
                shua_maxnum = Math.ceil(huafei_num / p_l.length)
                if (localStorage.getItem("hs_shua_xunci_num") && (Number(localStorage.getItem("hs_shua_xunci_num")) > 0)) {
                    shua_maxnum = Math.ceil(shua_maxnum / (Number(localStorage.getItem("hs_shua_xunci_num"))+1))
                } else {
                    shua_maxnum = Number(shua_maxnum)
                }
                shuaMax.innerText = '次数:' + shua_maxnum
            }
            if (shua_huapen_3 >= shua_maxnum) {
                // console.log('花盆3已刷完');
                shua_huapen_3 = 0
                if (localStorage.getItem("shuawan_stop_huapen") == 1) {
                    if ((Number(localStorage.getItem("hs_shua_renwu_num")) > 0) && (hs_shua_renwu_num_task < Number(localStorage.getItem("hs_shua_renwu_num")))) {
                        hs_shua_renwu_num_task++;
                        sfn2002();
                        setTimeout(() => {
                            sfn6103(30)
                        }, 500);
                    } else {
                        hs_shua_renwu_num_task = 1;
                        $("#task_name").text('完成');
                        sfn2001()
                    }
                } else {
                    sfn30131(true)
                }
                return
            }
            $("#task_name").text('刷中化肥');
            pkid.innerText = shua_huapen_3
            // console.log('开始刷花盆3，次数：' + (shua_huapen_3 + 1));
            setTimeout(function () {
                if (is_shua_one_id) {
                    ifr.src = huayuan_t+"/mfhy/pot/prepOkSeed.asp;?sid="+token_dan+"&seedId=" + is_shua_one_id;
                } else {
                    ifr.src = huayuan_t+"/mfhy/pot/prepOkSow.asp;?sid="+ token_dan;
                }
            }, 500)
            setTimeout(function () {
                ifr.src = huayuan_t+"/mfhy/pot/okSow.asp;?sid="+ token_dan;
            }, 1000)
            setTimeout(function () {
                if (localStorage.getItem("shua_jiaohua") == 1) {
                    ifr.src = huayuan_t+"/mfhy/pot/okdooper.asp;?sid="+ token_dan;
                }
            }, 1500)
            setTimeout(function () {
                shua_huapen_3++
                sfn5003(sfn6103, 1)
            }, 2000)
        }
        // 刷水盆3
        let shua_shuipen_3 = 0
        function sfn6203 (setNum) {
            if (typeof setNum =="number") {
                let guding_num = localStorage.getItem("hs_shua_guding_num")
                let huafei_num = 0
                if (Number(guding_num) > 0) {
                    huafei_num = guding_num
                } else {
                    let huafei_num_input = prompt("请输入中化肥数量","");
                    if (huafei_num_input === null) {
                        return
                    } else {
                        huafei_num = huafei_num_input
                    }
                }
                let p_l = hs_h_l[token_idx].slice(14)
                huafei_num = huafei_num ? huafei_num : 1
                shua_maxnum = Math.ceil(huafei_num / p_l.length)
                if (localStorage.getItem("hs_shua_xunci_num") && (Number(localStorage.getItem("hs_shua_xunci_num")) > 0)) {
                    shua_maxnum = Math.ceil(shua_maxnum / (Number(localStorage.getItem("hs_shua_xunci_num"))+1))
                } else {
                    shua_maxnum = Number(shua_maxnum)
                }
                shuaMax.innerText = '次数:' + shua_maxnum
            }
            if (shua_shuipen_3 >= shua_maxnum) {
                // console.log('水盆3已刷完');
                shua_shuipen_3 = 0
                if (localStorage.getItem("shuawan_stop_shuipen") == 1) {
                    if ((Number(localStorage.getItem("hs_shua_renwu_num")) > 0) && (hs_shua_renwu_num_task < Number(localStorage.getItem("hs_shua_renwu_num")))) {
                        hs_shua_renwu_num_task++;
                        sfn2002();
                        setTimeout(() => {
                            sfn6203(30)
                        }, 500);
                    } else {
                        hs_shua_renwu_num_task = 1;
                        $("#task_name").text('完成');
                        sfn2001()
                    }
                } else {
                    sfn30131(true)
                }
                return
            }
            $("#task_name").text('刷中化肥');
            pkid.innerText = shua_shuipen_3
            // console.log('开始刷水盆3，次数：' + (shua_shuipen_3 + 1));
            setTimeout(function () {
                if (is_shua_one_id) {
                    ifr.src = huayuan_t+"/mfhy/pot/prepOkSeed.asp;?sid="+token_dan+"&seedId=" + is_shua_one_id;
                } else {
                    ifr.src = huayuan_t+"/mfhy/pot/prepOkSow.asp;?sid="+ token_dan;
                }
            }, 500)
            setTimeout(function () {
                ifr.src = huayuan_t+"/mfhy/pot/okSow.asp;?sid="+ token_dan;
            }, 1000)
            setTimeout(function () {
                if (localStorage.getItem("shua_jiaohua") == 1) {
                    ifr.src = huayuan_t+"/mfhy/pot/okdooper.asp;?sid="+ token_dan;
                }
            }, 1500)
            if (localStorage.getItem("shua_huapen_id") == 2) {
                // setTimeout(function () {
                //     sfn00081('290');
                // }, 2000)
                setTimeout(function () {
                    shua_shuipen_3++
                    sfn5003(sfn6203, 2)
                }, 2000) // (2000 + task_time_r * 10)
            } else {
                setTimeout(function () {
                    shua_shuipen_3++
                    sfn5003(sfn6203, 2)
                }, 2000)
            }
        }
        // 刷茉莉花
        let shua_moli = 0
        function sfn6004 (setNum) {
            if (localStorage.getItem("shua_huapen_id") == 1) {
                sfn6104(30)
                return
            }
            if (localStorage.getItem("shua_huapen_id") == 2) {
                sfn6204(30)
                return
            }
            if (typeof setNum =="number") {
                let guding_num = localStorage.getItem("hs_shua_guding_num")
                let huafei_num = 0
                if (Number(guding_num) > 0) {
                    huafei_num = guding_num
                } else {
                    let huafei_num_input = prompt("请输入大化肥数量","");
                    if (huafei_num_input === null) {
                        return
                    } else {
                        huafei_num = huafei_num_input
                    }
                }
                huafei_num = huafei_num ? huafei_num : 1
                shua_maxnum = Math.ceil(huafei_num / hs_h_l[token_idx].length)
                if (localStorage.getItem("hs_shua_xunci_num") && (Number(localStorage.getItem("hs_shua_xunci_num")) > 0)) {
                    shua_maxnum = Math.ceil(shua_maxnum / (Number(localStorage.getItem("hs_shua_xunci_num"))+1))
                } else {
                    shua_maxnum = Number(shua_maxnum)
                }
                shuaMax.innerText = '次数:' + shua_maxnum
            }
            if (shua_moli >= shua_maxnum) {
                // console.log('茉莉花已刷完');
                shua_moli = 0
                // sfn2001()
                if (localStorage.getItem("shuawan_stop_huafei") == 1) {
                    if ((Number(localStorage.getItem("hs_shua_renwu_num")) > 0) && (hs_shua_renwu_num_task < Number(localStorage.getItem("hs_shua_renwu_num")))) {
                        hs_shua_renwu_num_task++;
                        sfn2002();
                        setTimeout(() => {
                            sfn6004(30)
                        }, 500);
                    } else {
                        hs_shua_renwu_num_task = 1;
                        $("#task_name").text('完成');
                        sfn2001()
                    }
                } else {
                    sfn30131(true)
                }
                return
            }
            $("#task_name").text('刷大化肥');
            pkid.innerText = shua_moli
            // console.log('开始刷桃花，次数：' + (shua_moli + 1));
            setTimeout(function () {
                ifr.src = huayuan_t+"/mfhy/pot/prepOkSow.asp;?sid="+ token_dan;
            }, 500)
            setTimeout(function () {
                ifr.src = huayuan_t+"/mfhy/pot/okSow.asp;?sid="+ token_dan;
            }, 1000)
            setTimeout(function () {
                if (localStorage.getItem("shua_jiaohua") == 1) {
                    ifr.src = huayuan_t+"/mfhy/pot/okdooper.asp;?sid="+ token_dan;
                }
            }, 1500)
            setTimeout(function () {
                shua_moli++
                sfn5004(sfn6004)
            }, 2000)
        }
        // 刷超级
        let shua_chaoji = 0
        function sfn6005 (setNum) {
            if (localStorage.getItem("shua_huapen_id") == 1) {
                sfn6105(30)
                return
            }
            if (localStorage.getItem("shua_huapen_id") == 2) {
                sfn6205(30)
                return
            }
            if (typeof setNum =="number") {
                let guding_num = localStorage.getItem("hs_shua_guding_num")
                let huafei_num = 0
                if (Number(guding_num) > 0) {
                    huafei_num = guding_num
                } else {
                    let huafei_num_input = prompt("请输入超级化肥数量","");
                    if (huafei_num_input === null) {
                        return
                    } else {
                        huafei_num = huafei_num_input
                    }
                }
                huafei_num = huafei_num ? huafei_num : 1
                shua_maxnum = Math.ceil(huafei_num / hs_h_l[token_idx].length)
                shuaMax.innerText = '次数:' + shua_maxnum
            }
            shua_maxnum = Number(shua_maxnum)
            if (shua_chaoji >= shua_maxnum) {
                // console.log('茉莉花已刷完');
                shua_chaoji = 0
                // sfn2001()
                if (localStorage.getItem("shuawan_stop_huafei") == 1) {
                    if ((Number(localStorage.getItem("hs_shua_renwu_num")) > 0) && (hs_shua_renwu_num_task < Number(localStorage.getItem("hs_shua_renwu_num")))) {
                        hs_shua_renwu_num_task++;
                        sfn2002();
                        setTimeout(() => {
                            sfn6005(30)
                        }, 500);
                    } else {
                        hs_shua_renwu_num_task = 1;
                        $("#task_name").text('完成');
                        sfn2001()
                    }
                } else {
                    sfn30131(true)
                }
                return
            }
            $("#task_name").text('刷超级化肥');
            pkid.innerText = shua_chaoji
            // console.log('开始刷桃花，次数：' + (shua_chaoji + 1));
            setTimeout(function () {
                ifr.src = huayuan_t+"/mfhy/pot/prepOkSow.asp;?sid="+ token_dan;
            }, 500)
            setTimeout(function () {
                ifr.src = huayuan_t+"/mfhy/pot/okSow.asp;?sid="+ token_dan;
            }, 1000)
            setTimeout(function () {
                if (localStorage.getItem("shua_jiaohua") == 1) {
                    ifr.src = huayuan_t+"/mfhy/pot/okdooper.asp;?sid="+ token_dan;
                }
            }, 1500)
            setTimeout(function () {
                shua_chaoji++
                sfn5005(sfn6005)
            }, 2000)
        }
        // 刷花盆10
        let shua_huapen_4 = 0
        function sfn6104 (setNum) {
            if (typeof setNum =="number") {
                let guding_num = localStorage.getItem("hs_shua_guding_num")
                let huafei_num = 0
                if (Number(guding_num) > 0) {
                    huafei_num = guding_num
                } else {
                    let huafei_num_input = prompt("请输入大化肥数量","");
                    if (huafei_num_input === null) {
                        return
                    } else {
                        huafei_num = huafei_num_input
                    }
                }
                let p_l = hs_h_l[token_idx].slice(0,14)
                huafei_num = huafei_num ? huafei_num : 1
                shua_maxnum = Math.ceil(huafei_num / p_l.length)
                if (localStorage.getItem("hs_shua_xunci_num") && (Number(localStorage.getItem("hs_shua_xunci_num")) > 0)) {
                    shua_maxnum = Math.ceil(shua_maxnum / (Number(localStorage.getItem("hs_shua_xunci_num"))+1))
                } else {
                    shua_maxnum = Number(shua_maxnum)
                }
                shuaMax.innerText = '次数:' + shua_maxnum
            }
            if (shua_huapen_4 >= shua_maxnum) {
                // console.log('花盆10已刷完');
                shua_huapen_4 = 0
                if (localStorage.getItem("shuawan_stop_huapen") == 1) {
                    if ((Number(localStorage.getItem("hs_shua_renwu_num")) > 0) && (hs_shua_renwu_num_task < Number(localStorage.getItem("hs_shua_renwu_num")))) {
                        hs_shua_renwu_num_task++;
                        sfn2002();
                        setTimeout(() => {
                            sfn6104(30)
                        }, 500);
                    } else {
                        hs_shua_renwu_num_task = 1;
                        $("#task_name").text('完成');
                        sfn2001()
                    }
                } else {
                    sfn30131(true)
                }
                return
            }
            $("#task_name").text('刷大化肥');
            pkid.innerText = shua_huapen_4
            // console.log('开始刷花盆10，次数：' + (shua_huapen_4 + 1));
            setTimeout(function () {
                if (is_shua_one_id) {
                    ifr.src = huayuan_t+"/mfhy/pot/prepOkSeed.asp;?sid="+token_dan+"&seedId=" + is_shua_one_id;
                } else {
                    ifr.src = huayuan_t+"/mfhy/pot/prepOkSow.asp;?sid="+ token_dan;
                }
            }, 500)
            setTimeout(function () {
                ifr.src = huayuan_t+"/mfhy/pot/okSow.asp;?sid="+ token_dan;
            }, 1000)
            setTimeout(function () {
                if (localStorage.getItem("shua_jiaohua") == 1) {
                    ifr.src = huayuan_t+"/mfhy/pot/okdooper.asp;?sid="+ token_dan;
                }
            }, 1500)
            setTimeout(function () {
                shua_huapen_4++
                sfn5004(sfn6104, 1)
            }, 2000)
        }
        // 刷水盆10
        let shua_shuipen_4 = 0
        function sfn6204 (setNum) {
            if (typeof setNum =="number") {
                let guding_num = localStorage.getItem("hs_shua_guding_num")
                let huafei_num = 0
                if (Number(guding_num) > 0) {
                    huafei_num = guding_num
                } else {
                    let huafei_num_input = prompt("请输入大化肥数量","");
                    if (huafei_num_input === null) {
                        return
                    } else {
                        huafei_num = huafei_num_input
                    }
                }
                let p_l = hs_h_l[token_idx].slice(14)
                huafei_num = huafei_num ? huafei_num : 1
                shua_maxnum = Math.ceil(huafei_num / p_l.length)
                if (localStorage.getItem("hs_shua_xunci_num") && (Number(localStorage.getItem("hs_shua_xunci_num")) > 0)) {
                    shua_maxnum = Math.ceil(shua_maxnum / (Number(localStorage.getItem("hs_shua_xunci_num"))+1))
                } else {
                    shua_maxnum = Number(shua_maxnum)
                }
                shuaMax.innerText = '次数:' + shua_maxnum
            }
            if (shua_shuipen_4 >= shua_maxnum) {
                // console.log('水盆10已刷完');
                shua_shuipen_4 = 0
                if (localStorage.getItem("shuawan_stop_shuipen") == 1) {
                    if ((Number(localStorage.getItem("hs_shua_renwu_num")) > 0) && (hs_shua_renwu_num_task < Number(localStorage.getItem("hs_shua_renwu_num")))) {
                        hs_shua_renwu_num_task++;
                        sfn2002();
                        setTimeout(() => {
                            sfn6204(30)
                        }, 500);
                    } else {
                        hs_shua_renwu_num_task = 1;
                        $("#task_name").text('完成');
                        sfn2001()
                    }
                } else {
                    sfn30131(true)
                }
                return
            }
            $("#task_name").text('刷大化肥');
            pkid.innerText = shua_shuipen_4
            // console.log('开始刷水盆10，次数：' + (shua_shuipen_4 + 1));
            setTimeout(function () {
                if (is_shua_one_id) {
                    ifr.src = huayuan_t+"/mfhy/pot/prepOkSeed.asp;?sid="+token_dan+"&seedId=" + is_shua_one_id;
                } else {
                    ifr.src = huayuan_t+"/mfhy/pot/prepOkSow.asp;?sid="+ token_dan;
                }
            }, 500)
            setTimeout(function () {
                ifr.src = huayuan_t+"/mfhy/pot/okSow.asp;?sid="+ token_dan;
            }, 1000)
            setTimeout(function () {
                if (localStorage.getItem("shua_jiaohua") == 1) {
                    ifr.src = huayuan_t+"/mfhy/pot/okdooper.asp;?sid="+ token_dan;
                }
            }, 1500)
            if (localStorage.getItem("shua_huapen_id") == 2) {
                // setTimeout(function () {
                //     sfn00081('290');
                // }, 2000)
                setTimeout(function () {
                    shua_shuipen_4++
                    sfn5004(sfn6204, 2)
                }, 2000) // (2000 + task_time_r * 10)
            } else {
                setTimeout(function () {
                    shua_shuipen_4++
                    sfn5004(sfn6204, 2)
                }, 2000)
            }
        }
        // 刷花盆超级
        let shua_huapen_5 = 0
        function sfn6105 (setNum) {
            if (typeof setNum =="number") {
                let guding_num = localStorage.getItem("hs_shua_guding_num")
                let huafei_num = 0
                if (Number(guding_num) > 0) {
                    huafei_num = guding_num
                } else {
                    let huafei_num_input = prompt("请输入超级化肥数量","");
                    if (huafei_num_input === null) {
                        return
                    } else {
                        huafei_num = huafei_num_input
                    }
                }
                let p_l = hs_h_l[token_idx].slice(0,14)
                huafei_num = huafei_num ? huafei_num : 1
                shua_maxnum = Math.ceil(huafei_num / p_l.length)
                shuaMax.innerText = '次数:' + shua_maxnum
            }
            shua_maxnum = Number(shua_maxnum)
            if (shua_huapen_5 >= shua_maxnum) {
                // console.log('花盆10已刷完');
                shua_huapen_5 = 0
                if (localStorage.getItem("shuawan_stop_huapen") == 1) {
                    if ((Number(localStorage.getItem("hs_shua_renwu_num")) > 0) && (hs_shua_renwu_num_task < Number(localStorage.getItem("hs_shua_renwu_num")))) {
                        hs_shua_renwu_num_task++;
                        sfn2002();
                        setTimeout(() => {
                            sfn6105(30)
                        }, 500);
                    } else {
                        hs_shua_renwu_num_task = 1;
                        $("#task_name").text('完成');
                        sfn2001()
                    }
                } else {
                    sfn30131(true)
                }
                return
            }
            $("#task_name").text('刷超级化肥');
            pkid.innerText = shua_huapen_5
            // console.log('开始刷花盆10，次数：' + (shua_huapen_5 + 1));
            setTimeout(function () {
                if (is_shua_one_id) {
                    ifr.src = huayuan_t+"/mfhy/pot/prepOkSeed.asp;?sid="+token_dan+"&seedId=" + is_shua_one_id;
                } else {
                    ifr.src = huayuan_t+"/mfhy/pot/prepOkSow.asp;?sid="+ token_dan;
                }
            }, 500)
            setTimeout(function () {
                ifr.src = huayuan_t+"/mfhy/pot/okSow.asp;?sid="+ token_dan;
            }, 1000)
            setTimeout(function () {
                if (localStorage.getItem("shua_jiaohua") == 1) {
                    ifr.src = huayuan_t+"/mfhy/pot/okdooper.asp;?sid="+ token_dan;
                }
            }, 1500)
            setTimeout(function () {
                shua_huapen_5++
                sfn5005(sfn6105, 1)
            }, 2000)
        }
        // 刷水盆超级
        let shua_shuipen_5 = 0
        function sfn6205 (setNum) {
            if (typeof setNum =="number") {
                let guding_num = localStorage.getItem("hs_shua_guding_num")
                let huafei_num = 0
                if (Number(guding_num) > 0) {
                    huafei_num = guding_num
                } else {
                    let huafei_num_input = prompt("请输入超级化肥数量","");
                    if (huafei_num_input === null) {
                        return
                    } else {
                        huafei_num = huafei_num_input
                    }
                }
                let p_l = hs_h_l[token_idx].slice(14)
                huafei_num = huafei_num ? huafei_num : 1
                shua_maxnum = Math.ceil(huafei_num / p_l.length)
                shuaMax.innerText = '次数:' + shua_maxnum
            }
            shua_maxnum = Number(shua_maxnum)
            if (shua_shuipen_5 >= shua_maxnum) {
                // console.log('水盆10已刷完');
                shua_shuipen_5 = 0
                if (localStorage.getItem("shuawan_stop_shuipen") == 1) {
                    if ((Number(localStorage.getItem("hs_shua_renwu_num")) > 0) && (hs_shua_renwu_num_task < Number(localStorage.getItem("hs_shua_renwu_num")))) {
                        hs_shua_renwu_num_task++;
                        sfn2002();
                        setTimeout(() => {
                            sfn6205(30)
                        }, 500);
                    } else {
                        hs_shua_renwu_num_task = 1;
                        $("#task_name").text('完成');
                        sfn2001()
                    }
                } else {
                    sfn30131(true)
                }
                return
            }
            $("#task_name").text('刷大化肥');
            pkid.innerText = shua_shuipen_5
            // console.log('开始刷水盆10，次数：' + (shua_shuipen_5 + 1));
            setTimeout(function () {
                if (is_shua_one_id) {
                    ifr.src = huayuan_t+"/mfhy/pot/prepOkSeed.asp;?sid="+token_dan+"&seedId=" + is_shua_one_id;
                } else {
                    ifr.src = huayuan_t+"/mfhy/pot/prepOkSow.asp;?sid="+ token_dan;
                }
            }, 500)
            setTimeout(function () {
                ifr.src = huayuan_t+"/mfhy/pot/okSow.asp;?sid="+ token_dan;
            }, 1000)
            setTimeout(function () {
                if (localStorage.getItem("shua_jiaohua") == 1) {
                    ifr.src = huayuan_t+"/mfhy/pot/okdooper.asp;?sid="+ token_dan;
                }
            }, 1500)
            if (localStorage.getItem("shua_huapen_id") == 2) {
                // setTimeout(function () {
                //     sfn00081('290');
                // }, 2000)
                setTimeout(function () {
                    shua_shuipen_5++
                    sfn5005(sfn6205, 2)
                }, 2000) // (2000 + task_time_r * 10)
            } else {
                setTimeout(function () {
                    shua_shuipen_5++
                    sfn5005(sfn6205, 2)
                }, 2000)
            }
        }
        // 购买花种
        function sfn7001 (id, num, isBuy) {
            let buy_num = num
            if (isBuy) {
                let prompt_text = prompt(`请输入购买数量数量(默认${num})`,"");
                if (prompt_text !== null) {
                    buy_num = prompt_text ? prompt_text : num
                    $.post(huayuan_t+"/mfhy/plaza/buy.asp;?sid="+token_dan+"&",{
                            type: '0',
                            subType: '0',
                            id: id,
                            count: buy_num
                        }
                    );
                    setTimeout(function () {
                        sfn2011()
                    }, 200)
                }
            }
        }
        function sfn70011 (token, fun) {
            let t_idx = 0
            let token_task = token || token_dan
            shuaMax.innerText = '次数:' + test_huaduo_list.length
            let tmr = setInterval(function () {
                if (t_idx >= test_huaduo_list.length) {
                    clearInterval(tmr)
                    if (typeof fun == "function") {
                        fun(true)
                    } else {
                        sfn2011()
                    }
                }else{
                    indexid.innerText = t_idx;
                    let huaduoItem = test_huaduo_list[t_idx]
                    $.post(huayuan_t+"/mfhy/plaza/buy.asp;?sid="+token_task+"&",{
                            type: '0',
                            subType: '0',
                            id: huaduoItem.id,
                            count: huaduoItem.count
                        }
                    );
                    t_idx++
                }
            }, 500)
        }
        // 买任务花种
        var test_huaduo_list = [];
        let buy_day_huaduo = 0;
        // 买任务花
        function sfn70012 (next) {
            if (next) {
                buy_day_huaduo++
            }
            if (buy_day_huaduo >= hs_t_l.length) {
                buy_day_huaduo = 0
                // 完成
                sfn80034()
                return
            }
            if (buy_day_huaduo == 0) {
                test_huaduo_list = [
                    {id: 'meb8875i_q', count: '100'}, // 星光熠熠100
                ]
            } else {
                test_huaduo_list = [
                    {id: 'vsn907513d', count: '100'}, // 星星之火100
                    {id: 'ni883758hr', count: '100'}, // 心花怒放100
                    {id: 'meb8875i_q', count: '100'}, // 星光熠熠100
                ]
            }
            pkid.innerText = buy_day_huaduo
            sfn70011(hs_t_l[buy_day_huaduo], sfn70012)
        }
        // 查看种子说明
        function sfn7002 () {
            document.getElementById('modal').style.display = 'flex'
        }
        function sfn7006 () {
            document.getElementById('jisuan').style.display = 'flex'
        }
        // 关闭查看
        function sfn7003 () {
            document.getElementById('modal').style.display = 'none'
            document.getElementById('jisuan').style.display = 'none'
            document.getElementById('cailiao').style.display = 'none'
            document.getElementById('danshua').style.display = 'none'
            // document.getElementById('input7').removeEventListener('input', sfn40081)
        }
        // 折叠展开
        var is_zhexie = 0
        function sfn7004 () {
            if (is_zhexie == 0) {
                is_zhexie = 1
                document.getElementById('zhedie').style.height = '0'
                $('.zhedie3').hide()
                $('.zhedie4').show()
                $('.zhedie5').show()
            } else {
                is_zhexie = 0
                document.getElementById('zhedie').style.height = 'auto'
                $('.zhedie3').show()
                $('.zhedie4').hide()
                $('.zhedie5').hide()
            }
        }
        // 折叠展开
        var is_zhexie2 = 0
        function sfn7007 () {
            if (is_zhexie2 == 0) {
                is_zhexie2 = 1
                document.getElementById('zhedie2').style.height = 'auto'
            } else {
                is_zhexie2 = 0
                document.getElementById('zhedie2').style.height = '0'
            }
        }
        function sfn7008 () {
            $("#task_name").text('开始手动兑换');
            let value81 = document.getElementById('input8-1').value.trim()
            let value82 = document.getElementById('input8-2').value.trim()
            let value83 = document.getElementById('input8-3').value.trim()
            let value84 = document.getElementById('input8-4').value.trim()
            let value85 = document.getElementById('input8-5').value.trim()
            let value86 = document.getElementById('input8-6').value.trim()
            let value87 = document.getElementById('input8-7').value.trim()
            let value88 = document.getElementById('input8-8').value.trim()
            let value89 = document.getElementById('input8-9').value.trim()
            let value810 = document.getElementById('input8-10').value.trim()
            let value811 = document.getElementById('input8-11').value.trim()
            let value812 = document.getElementById('input8-12').value.trim()
            let value813 = document.getElementById('input8-13').value.trim()
            let value814 = document.getElementById('input8-14').value.trim()
            let value815 = document.getElementById('input8-15').value.trim()
            let duihuan_list = []
            if (value81 > 0) {
                let item = JSON.parse(JSON.stringify(duihuan_list_cailiao[0]))
                item.buyNum = value81
                duihuan_list.push(item)
            }
            if (value82 > 0) {
                let item = JSON.parse(JSON.stringify(duihuan_list_cailiao[1]))
                item.buyNum = value82
                duihuan_list.push(item)
            }
            if (value83 > 0) {
                let item = JSON.parse(JSON.stringify(duihuan_list_cailiao[2]))
                item.buyNum = value83
                duihuan_list.push(item)
            }
            if (value84 > 0) {
                let item = JSON.parse(JSON.stringify(duihuan_list_cailiao[3]))
                item.buyNum = value84
                duihuan_list.push(item)
            }
            if (value85 > 0) {
                let item = JSON.parse(JSON.stringify(duihuan_list_cailiao[4]))
                item.buyNum = value85
                duihuan_list.push(item)
            }
            if (value86 > 0) {
                let item = JSON.parse(JSON.stringify(duihuan_list_cailiao[5]))
                item.buyNum = value86
                duihuan_list.push(item)
            }
            if (value87 > 0) {
                let item = JSON.parse(JSON.stringify(duihuan_list_cailiao[6]))
                item.buyNum = value87
                duihuan_list.push(item)
            }
            if (value88 > 0) {
                let item = JSON.parse(JSON.stringify(duihuan_list_cailiao[7]))
                item.buyNum = value88
                duihuan_list.push(item)
            }
            if (value89 > 0) {
                let item = JSON.parse(JSON.stringify(duihuan_list_cailiao[8]))
                item.buyNum = value89
                duihuan_list.push(item)
            }
            if (value810 > 0) {
                let item = JSON.parse(JSON.stringify(duihuan_list_cailiao[9]))
                item.buyNum = value810
                duihuan_list.push(item)
            }
            if (value811 > 0) {
                let item = JSON.parse(JSON.stringify(duihuan_list_cailiao[10]))
                item.buyNum = value811
                duihuan_list.push(item)
            }
            if (value812 > 0) {
                let item = JSON.parse(JSON.stringify(duihuan_list_cailiao[11]))
                item.buyNum = value812
                duihuan_list.push(item)
            }
            if (value813 > 0) {
                let item = JSON.parse(JSON.stringify(duihuan_list_cailiao[12]))
                item.buyNum = value813
                duihuan_list.push(item)
            }
            if (value814 > 0) {
                let item = JSON.parse(JSON.stringify(duihuan_list_cailiao[13]))
                item.buyNum = value814
                duihuan_list.push(item)
            }
            if (value815 > 0) {
                let item = JSON.parse(JSON.stringify(duihuan_list_cailiao[14]))
                item.buyNum = value815
                duihuan_list.push(item)
            }
            let t_idx = 0
            shuaMax.innerText = '次数:' + duihuan_list.length
            let tmr = setInterval(function () {
                if (t_idx >= duihuan_list.length) {
                    clearInterval(tmr)
                    $("#task_name").text('完成');
                    sfn2013()
                }else{
                    indexid.innerText = t_idx;
                    let huaduoItem = duihuan_list[t_idx]
                    $.post(huayuan_t+"/mfhy/gmixt/make.asp;?sid="+token_dan,{
                            count: String(huaduoItem.buyNum),
                            type: '1',
                            id: huaduoItem.id,
                        }
                    );
                    t_idx++
                }
            }, 300)
        }
        function sfn70081 () {
            $("#task_name").text('兑换100箱子');
            let t_idx = 0
            shuaMax.innerText = '次数:' + hs_t_l.length
            let tmr = setInterval(function () {
                if (t_idx >= hs_t_l.length) {
                    $("#task_name").text('完成');
                    clearInterval(tmr)
                    sfn2001()
                }else{
                    indexid.innerText = t_idx;
                    // if (t_idx > 0) {
                    //     $.post(huayuan_t+"/mfhy/gmixt/make.asp;?sid="+hs_t_l[t_idx],{
                    //             count: '100',
                    //             type: '1',
                    //             id: 'wka6089ml', // 1麻线球换亚麻箱子
                    //         }
                    //     );
                    // }
                    // setTimeout(() => {
                    //     $.post(huayuan_t+"/mfhy/gmixt/make.asp;?sid="+hs_t_l[t_idx],{
                    //             count: '100',
                    //             type: '1',
                    //             id: '4zr918qym', // 1含羞草换红枫箱子
                    //         }
                    //     );
                    // }, 250);
                    // setTimeout(() => {
                    //     if (t_idx > 0) {
                    //         $.post(huayuan_t+"/mfhy/gmixt/make.asp;?sid="+hs_t_l[t_idx],{
                    //                 count: '100',
                    //                 type: '1',
                    //                 id: 'ysk5887qb', // 1水晶石换龙葵箱子
                    //             }
                    //         );
                    //     }
                    // }, 500);
                    // setTimeout(() => {
                    //     $.post(huayuan_t+"/mfhy/gmixt/make.asp;?sid="+hs_t_l[t_idx],{
                    //             count: '100',
                    //             type: '1',
                    //             id: '36a218s8i', // 1鱼鳞石换含羞草箱子
                    //         }
                    //     );
                    // }, 750);
                    // setTimeout(() => {
                    //     if (t_idx > 0) {
                    //         $.post(huayuan_t+"/mfhy/gmixt/make.asp;?sid="+hs_t_l[t_idx],{
                    //                 count: '100',
                    //                 type: '1',
                    //                 id: 'p37388sch', // 1鱼鳞石换孔雀石箱子
                    //             }
                    //         );
                    //     }
                    //     t_idx++
                    // }, 1000);
                    $.post(huayuan_t+"/mfhy/gmixt/make.asp;?sid="+hs_t_l[t_idx],{
                            count: '100',
                            type: '1',
                            id: '36a218s8i', // 1鱼鳞石换含羞草箱子
                        }
                    );
                    t_idx++
                }
            }, 300)
        }
        function sfn70082 () {
            $("#task_name").text('临时兑换材料');
            let t_idx = 0
            shuaMax.innerText = '次数:' + hs_t_l.length
            let tmr = setInterval(function () {
                if (t_idx >= hs_t_l.length) {
                    $("#task_name").text('完成');
                    clearInterval(tmr)
                    sfn2001()
                }else{
                    indexid.innerText = t_idx;
                    $.post(huayuan_t+"/mfhy/gmixt/make.asp;?sid="+hs_t_l[t_idx],{
                            count: '10',
                            type: '1',
                            id: 'ld146hnh', // 8矿渣换莹石
                        }
                    );
                    setTimeout(() => {
                        $.post(huayuan_t+"/mfhy/gmixt/make.asp;?sid="+hs_t_l[t_idx],{
                                count: '30',
                                type: '1',
                                id: 'qqc577caq', // 3竹条换树枝
                            }
                        );
                    }, 300);
                    setTimeout(() => {
                        $.post(huayuan_t+"/mfhy/gmixt/make.asp;?sid="+hs_t_l[t_idx],{
                                count: '10',
                                type: '1',
                                id: '3z53775ch', // 8树枝换龙葵
                            }
                        );
                    }, 600);
                    setTimeout(() => {
                        $.post(huayuan_t+"/mfhy/gmixt/make.asp;?sid="+hs_t_l[t_idx],{
                                count: '10',
                                type: '1',
                                id: 'dpt457j7q', // 8莹石换孔雀石
                            }
                        );
                    }, 900);
                    setTimeout(() => {
                        $.post(huayuan_t+"/mfhy/gmixt/make.asp;?sid="+hs_t_l[t_idx],{
                                count: '20',
                                type: '1',
                                id: 'jrk55501v', // 5蔓草换亚麻
                            }
                        );
                        // t_idx++
                    }, 1200);
                    setTimeout(() => {
                        $.post(huayuan_t+"/mfhy/gmixt/make.asp;?sid="+hs_t_l[t_idx],{
                                count: '10',
                                type: '1',
                                id: '2ao96ir1', // 8枫叶换四叶草
                            }
                        );
                        // t_idx++
                    }, 1500);
                    setTimeout(() => {
                        $.post(huayuan_t+"/mfhy/gmixt/make.asp;?sid="+hs_t_l[t_idx],{
                                count: '10',
                                type: '1',
                                id: 'vg7957ku0', // 8四叶草换红叶
                            }
                        );
                        t_idx++
                    }, 1800);
                    // t_idx++
                    // $.post(huayuan_t+"/mfhy/gmixt/make.asp;?sid="+hs_t_l[t_idx],{
                    //         count: '1',
                    //         type: '1',
                    //         id: 'jza857_bs', // 8亚麻换麻线球
                    //     }
                    // );
                    // t_idx++
                }
            }, 2100)
        }
        function sfn7009 () {
            $('.cailiao-input').val('')
        }
        /**
         * 计算需要的种子数量
         * 计算公式：化肥数量 / (花盆+水盆总数) = 一个盆的施肥次数
            一个盆的施肥次数 * 化肥时长 = 一个盆的施肥时长
            一个盆的施肥时长 / Math.ceil(种子的成熟时长/化肥时长) * 化肥时长 = 一个盆种植数量
            花盆种子 = 一个盆种植数量 * 花盆总数
            水盆种子 = 一个盆种植数量 * 水盆总数
            需要输入框1：请输入化肥数量
            需要输入框2：请输入化肥施肥时长(分钟数)
            需要输入框3：请输入种子成熟时长(分钟数)
        */
        function sfn7005 () {
            let huafei_num = document.getElementById('input1').value
            let huafei_time = document.getElementById('input2').value
            let huapen_time = document.getElementById('input3').value
            let shuipen_time = document.getElementById('input4').value
            let huapen_total = document.getElementById('input5').value
            let shuipen_total = document.getElementById('input6').value
            if (!huapen_total && shuipen_total && huafei_num && huafei_time && shuipen_time) {
                let shifei_num = Math.ceil(huafei_num / 7)
                let shifei_time = Math.ceil(shifei_num * huafei_time)
                let shuipen_need_num = Math.ceil((shifei_time / (Math.ceil(shuipen_time / huafei_time) * huafei_time)) * shuipen_total)
                document.getElementById('huapen_need_num').innerText = ''
                document.getElementById('shuipen_need_num').innerText = shuipen_need_num
            } else if (!shuipen_total && huapen_total && huafei_num && huafei_time && huapen_time) {
                let shifei_num = Math.ceil(huafei_num / 14)
                let shifei_time = Math.ceil(shifei_num * huafei_time)
                let huapen_need_num = Math.ceil((shifei_time / (Math.ceil(huapen_time / huafei_time) * huafei_time)) * huapen_total)
                document.getElementById('huapen_need_num').innerText = huapen_need_num
                document.getElementById('shuipen_need_num').innerText = ''
            } else if (huafei_num && huafei_time && huapen_time && shuipen_time) {
                huapen_total = huapen_total || 14
                shuipen_total = shuipen_total || 7
                let shifei_num = Math.ceil(huafei_num / 21)
                let shifei_time = Math.ceil(shifei_num * huafei_time)
                let huapen_need_num = Math.ceil((shifei_time / (Math.ceil(huapen_time / huafei_time) * huafei_time)) * huapen_total)
                let shuipen_need_num = Math.ceil((shifei_time / (Math.ceil(shuipen_time / huafei_time) * huafei_time)) * shuipen_total)
                document.getElementById('huapen_need_num').innerText = huapen_need_num
                document.getElementById('shuipen_need_num').innerText = shuipen_need_num
            } else {
                document.getElementById('shuipen_need_num').innerText = ''
                document.getElementById('huapen_need_num').innerText = ''
            }
        }
        // 打开单刷设置
        function sfn0005 () {
            document.getElementById('danshua').style.display = 'flex';
            if (is_shua_one_id_type) {
                $("input[name='radioNameType'][value='"+is_shua_one_id_type+"']").prop("checked", true);
            }
            if (is_shua_one_id) {
                const typelistIndex = Object.values(jpList).findIndex(i => i == is_shua_one_id);
                const default_val = is_shua_one_id_type == 2 ? Object.keys(jpList)[typelistIndex] : is_shua_one_id;
                if ($("input[name='radioName'][value='"+default_val+"']").length > 0) {
                    $("input[name='radioName'][value='"+default_val+"']").prop("checked", true);
                    $('#diy-shua-id').val("");
                } else {
                    $('#diy-shua-id').val(is_shua_one_id);
                }
            }
            if (is_huajian_id) {
                $("input[name='radioHuajian'][value='"+is_huajian_id+"']").prop("checked", true);
            }
            if (task_time) {
                $("#taskTime").val(task_time)
            }
            if (task_time_r) {
                $("#taskTimeR").val(task_time_r)
            }
        }
        function sfn00061 () {
            $("#open-daoju").toggleClass("open-daoju")
        }
        // 十连开箱
        function sfn0006 (id, val, t) {
            if ($('#' + val).val()) {
                setTimeout(() => {
                    let num = Math.floor($('#' + val).val() / 10);
                    let t_idx = 0
                    let tmr = setInterval(function () {
                        if (t_idx >= num) {
                            clearInterval(tmr);
                        }else{
                            ifr.src = huayuan_t+"/mfhy/gbag/openBox.asp;?sid="+ token_dan + "&type=1&modelId="+id+"&count=10";
                            t_idx++;
                        }
                    }, 300)
                }, t);
            }
        }
        // 赠送花
        function sfn0007 (id, val) {
            let z_id = $("#z_id").val();
            let z_val = $("#"+val).val();
            $.post(huayuan_t+"/mfhy/fhouse/giveProd.asp;?sid="+token_dan,{
                    count: z_val,
                    message: '520',
                    type: '0',
                    id: id,
                    otherId: z_id,
                }
            );
        }
        // 设置主号
        function sfn00071 (id) {
            $("#z_id").val(id);
        }
        // 送整套普绣球
        function sfn00073 () {
            let z_id = $("#z_id").val();
            let song_num = prompt("请输入需要送的整套的数量","");
            if (song_num) {
                let t_idx = 0
                let tmr = setInterval(function () {
                    indexid.innerText = t_idx
                    if (t_idx >= Number(song_num)) {
                        clearInterval(tmr);
                    }else{
                        $.post(huayuan_t+"/mfhy/fhouse/giveProd.asp;?sid="+token_dan,{
                                count: "999",
                                message: '520',
                                type: '0',
                                id: "hr277155src",
                                otherId: z_id,
                            }
                        );
                        setTimeout(() => {
                            $.post(huayuan_t+"/mfhy/fhouse/giveProd.asp;?sid="+token_dan,{
                                    count: "999",
                                    message: '520',
                                    type: '0',
                                    id: "tqh57155cbz",
                                    otherId: z_id,
                                }
                            );
                        }, task_time_r);
                        setTimeout(() => {
                            $.post(huayuan_t+"/mfhy/fhouse/giveProd.asp;?sid="+token_dan,{
                                    count: "999",
                                    message: '520',
                                    type: '0',
                                    id: "8ao07155_lx",
                                    otherId: z_id,
                                }
                            );
                        }, task_time_r * 2);
                        setTimeout(() => {
                            $.post(huayuan_t+"/mfhy/fhouse/giveProd.asp;?sid="+token_dan,{
                                    count: "999",
                                    message: '520',
                                    type: '0',
                                    id: "bcm8715593p",
                                    otherId: z_id,
                                }
                            );
                            t_idx++;
                        }, task_time_r * 3);
                    }
                }, task_time_r * 4)
            }
        }
        // 自动切换小号赠送树枝和星辰然后大号自动合成星座花
        function sfn00075(setIdx) {
            let xh_idx = localStorage.getItem("hs_xh_zs_idx") || "";
            // 小号的token
            let zs_xh_t_l = JSON.parse(localStorage.getItem("hs_token_list_all_xiaohao_first"));
            if (setIdx === '') {
                xh_idx = prompt("请输入小号赠送的下标","");
            }
            let c_i = Number(xh_idx);
            if (xh_idx && c_i < zs_xh_t_l.length) {
                // 当前操作赠送的token
                let zs_token = zs_xh_t_l[c_i];
                $("#task_name").text('自动赠送树枝并合成');
                let id_list = [
                    'cfk72925k5w', 'cfk72925k5w', 'cfk72925k5w', 'cfk72925k5w',
                    'xj582925red', 'xj582925red', 'xj582925red', 'xj582925red',
                    'edn529259_1', 'edn529259_1', 'edn529259_1', 'edn529259_1',
                    '18312925pom', '18312925pom', '18312925pom', '18312925pom',
                    'ugl02925pbp', 'ugl02925pbp', 'ugl02925pbp', 'ugl02925pbp',
                    'xnj59495e5o', 'xnj59495e5o', 'xnj59495e5o', 'xnj59495e5o','xnj59495e5o', 'xnj59495e5o', 'xnj59495e5o', 'xnj59495e5o',
                ]
                let t_idx = 0
                let tmr = setInterval(function () {
                    indexid.innerText = t_idx
                    if (t_idx >= id_list.length) {
                        localStorage.setItem("hs_xh_zs_idx", c_i + 1);
                        clearInterval(tmr);
                        sfn00001('', 300, setIdx);
                    }else{
                        $.post(huayuan_t+"/mfhy/fhouse/giveProd.asp;?sid="+zs_token,{
                                count: '900',
                                message: '520',
                                type: '0',
                                id: id_list[t_idx],
                                otherId: "1263966",
                            }
                        );
                        t_idx++;
                    }
                }, 300)
            }
        }
        // 送整套银绣球
        function sfn00074 (id) {
            let z_id = $("#z_id").val();
            let song_num = prompt("请输入需要送的整套的次数","");
            if (song_num) {
                let t_idx = 0
                let tmr = setInterval(function () {
                    indexid.innerText = t_idx
                    if (t_idx >= Number(song_num)) {
                        clearInterval(tmr);
                    }else{
                        $.post(huayuan_t+"/mfhy/fhouse/giveProd.asp;?sid="+token_dan,{
                                count: "999",
                                message: '520',
                                type: '0',
                                id: id,
                                otherId: z_id,
                            }
                        );
                        t_idx++;
                    };
                }, task_time_r)
            }
        }
        // 送一套树枝
        function sfn00072 (id) {
            $("#task_name").text('送一套树枝');
            let z_id = $("#z_id").val();
            let id_list = [
                'cfk72925k5w', 'cfk72925k5w', 'cfk72925k5w', 'cfk72925k5w',
                'xj582925red', 'xj582925red', 'xj582925red', 'xj582925red',
                'edn529259_1', 'edn529259_1', 'edn529259_1', 'edn529259_1',
                '18312925pom', '18312925pom', '18312925pom', '18312925pom',
                'ugl02925pbp', 'ugl02925pbp', 'ugl02925pbp', 'ugl02925pbp',
                'xnj59495e5o', 'xnj59495e5o', 'xnj59495e5o', 'xnj59495e5o','xnj59495e5o', 'xnj59495e5o', 'xnj59495e5o', 'xnj59495e5o',
            ]
            let t_idx = 0
            let tmr = setInterval(function () {
                indexid.innerText = t_idx
                if (t_idx >= id_list.length) {
                    $("#task_name").text('完成');
                    clearInterval(tmr);
                    sfn2001()
                }else{
                    $.post(huayuan_t+"/mfhy/fhouse/giveProd.asp;?sid="+token_dan,{
                            count: '900',
                            message: '520',
                            type: '0',
                            id: id_list[t_idx],
                            otherId: id || z_id,
                        }
                    );
                    t_idx++;
                }
            }, task_time_r)
        }
        // 染色
        function sfn0008 (token, id, idx) {
            let token_task = token || token_dan;
            let selectedValue = $('input[name="radioRanse"]:checked').val();
            let id_task = id || selectedValue;
            let idx_task = idx || token_idx;
            if (id_task) {
                let p_l = hs_h_l[idx_task].slice(0,14);
                let t_idx = 0
                let tmr = setInterval(function () {
                    indexid.innerText = t_idx
                    if (t_idx >= p_l.length) {
                        clearInterval(tmr);
                        sfn2001()
                    }else{
                        $.post(huayuan_t+"/mfhy/pot/varyHue.asp;?sid="+token_task,{
                                potId: p_l[t_idx],
                                seedToFlowerId: id_task,
                            }
                        );
                        t_idx++;
                    }
                }, task_time_r)
            }
        }
        // 染白色鸢尾
        function sfn00081 (id) {
            let p_l = hs_h_l[token_idx].slice(14);
            let t_idx = 0
            let tmr = setInterval(function () {
                indexid.innerText = t_idx
                if (t_idx >= p_l.length) {
                    clearInterval(tmr);
                    sfn2001()
                }else{
                    $.post(huayuan_t+"/mfhy/pot/varyHue.asp;?sid="+token_dan,{
                            potId: p_l[t_idx],
                            seedToFlowerId: id,
                        }
                    );
                    t_idx++;
                }
            }, task_time_r)
        }
        // 清空单刷设置
        function sfn7010 () {
            $('input[type="radio"]').prop('checked', false);
            localStorage.removeItem('hs_danshua_id');
            localStorage.removeItem('hs_danshua_id_type');
            is_shua_one_id = "";
            is_shua_one_id_type = "";
            sfn7003();
        }
        // 保存单刷设置
        function sfn7011 () {
            let selectedValueType = $('input[name="radioNameType"]:checked').val();
            let selectedValue = $('input[name="radioName"]:checked').val();
            if ($('#diy-shua-id').val() != '') {
                selectedValue = $('#diy-shua-id').val()
            }
            is_shua_one_id_type = selectedValueType;
            if (selectedValueType == 2) {
                selectedValue = jpList[selectedValue];
            }
            is_shua_one_id = selectedValue;
            localStorage.setItem('hs_danshua_id', selectedValue);
            localStorage.setItem('hs_danshua_id_type', selectedValueType);
            let selectedHuajian = $('input[name="radioHuajian"]:checked').val();
            is_huajian_id = selectedHuajian;
            localStorage.setItem('hs_huajian_id', selectedHuajian);
            task_time = Number($('#taskTime').val());
            localStorage.setItem('hs_task_time', task_time);
            task_time_r = Number($('#taskTimeR').val());
            localStorage.setItem('hs_task_time_r', task_time_r);
            sfn7003();
        }
        // /mfhy/ghall/okChooseProds.asp;?sid=1523668_ee54e1ad2e1b7fa00d3f&type=2&taskId=7
        // /mfhy/ghall/handTask.asp;?sid=1523668_ee54e1ad2e1b7fa00d3f&type=2&taskId=7
        // /mfhy/ghall/takeReward.asp;?sid=1263966_5aa6f3dceffd5bd7176d&type=0
        // 花苗每日任务(作为当前最后一步)
        let day_task_index = 0
        function sfn8002 (next) {
            $("#task_name").text('花苗每日任务');
            if (next) {
                day_task_index++
            }
            if (day_task_index >= hs_t_l.length) {
                // 花苗任务全部执行完成，开起下个流程
                if (localStorage.getItem("hs_xiaohao_model") == 1) {
                    localStorage.setItem('hs_isDayMask',2);
                    setTimeout(function() {
                        window.location.href = './hs2.html';
                    }, 30);
                } else {
                    // 最后注册5个号结束
                    sfn0004()
                }
                return
            }
            pkid.innerText = day_task_index
            sfn8001(hs_t_l[day_task_index], sfn8002)
        }
        let task_list = [
            {type:0,taskId:1,task:1},
            {type:1,taskId:2,task:1},
            {type:2,taskId:3,task:1},
            {type:3,taskId:4,task:1},
            {type:0,taskId:5,task:1},
            {type:1,taskId:6,task:1},
            {type:2,taskId:7,task:1},
            {type:3,taskId:8,task:1},
            {type:0,taskId:10,task:1},
            {type:1,taskId:11,task:1},
            {type:2,taskId:12,task:1},
            {type:3,taskId:13,task:1},
            {type:4,taskId:9,task:1},
            {type:4,taskId:14,task:1},
            {type:4,taskId:15,task:1},
            {type:0,task:2},
            {type:1,task:2},
            {type:2,task:2},
            {type:3,task:2},
            {type:4,task:2},
            {type:4,task:3},
            {type:0,taskId:1,task:1},
            {type:1,taskId:2,task:1},
            {type:2,taskId:3,task:1},
            {type:3,taskId:4,task:1},
            {type:0,taskId:5,task:1},
            {type:1,taskId:6,task:1},
            {type:2,taskId:7,task:1},
            {type:3,taskId:8,task:1},
            {type:0,taskId:10,task:1},
            {type:1,taskId:11,task:1},
            {type:2,taskId:12,task:1},
            {type:3,taskId:13,task:1},
            {type:4,taskId:9,task:1},
            {type:4,taskId:14,task:1},
            {type:4,taskId:15,task:1},
            {type:0,task:2},
            {type:1,task:2},
            {type:2,task:2},
            {type:3,task:2},
            {type:4,task:2},
            {type:4,task:3}
        ]
        function sfn8001 (token, fun) {
            let task_token = token || token_dan
            let t_idx = 0
            let tmr = setInterval(function () {
                indexid.innerText = t_idx
                if (t_idx >= task_list.length) {
                    clearInterval(tmr);
                    if (typeof fun == "function") {
                        fun(true)
                    } else {
                        // sfn2001()
                        // 返回花苗页
                        ifr.src = huayuan_t+"/mfhy/ghall/index.asp;?sid="+ task_token;
                        $("#task_name").text('完成');
                    }
                }else{
                    let taskItem = task_list[t_idx]
                    if (taskItem.task == 3) {
                        ifr.src = huayuan_t+"/mfhy/ghall/riseMagic.asp;?sid="+ task_token + "&type="+taskItem.type;
                        t_idx++;
                    } else if (taskItem.task == 2) {
                        ifr.src = huayuan_t+"/mfhy/ghall/takeReward.asp;?sid="+ task_token + "&type="+taskItem.type;
                        t_idx++;
                    } else if (taskItem.task == 1) {
                        ifr.src = huayuan_t+"/mfhy/ghall/okChooseProds.asp;?sid="+ task_token + "&type="+taskItem.type+"&taskId="+taskItem.taskId;
                        setTimeout(() => {
                            ifr.src = huayuan_t+"/mfhy/ghall/handTask.asp;?sid="+ task_token + "&type="+taskItem.type+"&taskId="+taskItem.taskId;
                            t_idx++;
                        }, 500);
                    }
                }
            }, 1100)
        }
        function sfn9001 () {
            let hs_isDayNext_data = prompt("请输入下次任务的日期号数","");
            if(hs_isDayNext_data){
                localStorage.setItem('hs_isDayMask',2)
                localStorage.setItem('hs_isDayNext_data',Number(hs_isDayNext_data));
                setTimeout(function(){
                    window.location.href = './hs2.html';
                },30)
            }
        }
        function sfn9002(){
            let nextTimes = prompt("请输入下次自动收花剩余分钟数","");
            if (nextTimes) {
                let trueTime = [0,0];
                if(nextTimes.indexOf('.') != -1){
                    trueTime[0] = nextTimes.split('.')[0]
                    trueTime[1] = nextTimes.split('.')[1]
                }else{
                    trueTime[1] = nextTimes
                }
                $.get("http://texun.yueyue.online/hsget.php", function (result) {
                    let configList = JSON.parse(result)
                    // console.log(configList)
                    let hsConfig = configList.find(i => i.keys == "hs_config") || {}
                    if (hsConfig && hsConfig.values) {
                        let values = JSON.parse(hsConfig.values)
                        let nextTimeShouhuaHs = new Date().getTime() + (Number(trueTime[0]*60) + Number(trueTime[1]))*60000 + 30000
                        let keyValue = ""
                        // 小号模式固定时间，不调接口
                        if (localStorage.getItem("hs_xiaohao_model") == 1) {
                            keyValue = JSON.stringify({
                                nextTimeShouhuaHs1: values.nextTimeShouhuaHs1,
                                nextTimeShouhuaHs2: nextTimeShouhuaHs
                            })
                        } else {
                            keyValue = JSON.stringify({
                                nextTimeShouhuaHs1: nextTimeShouhuaHs,
                                nextTimeShouhuaHs2: values.nextTimeShouhuaHs2
                            })
                        }
                        let ajaxData = {
                            id: 1,
                            keys: 'hs_config',
                            values: keyValue,
                        }
                        $.post("http://texun.yueyue.online/hsupdate.php", ajaxData,function (result) {
                            // console.log(result)
                            if (localStorage.getItem("hs_xiaohao_model") == 1) {
                                localStorage.setItem('nextTimeShouhuaHs2', nextTimeShouhuaHs);
                            } else {
                                localStorage.setItem('nextTimeShouhuaHs1', nextTimeShouhuaHs);
                            }
                            localStorage.setItem('hs_isDayMask',2);
                            setTimeout(function(){
                                window.location.href = './hs2.html';
                            },30)
                        })
                    }
                })
            }
        }
        function sfn9003 () {
            let xh_num = prompt("请输入消耗的金币次数（每次999）","");
            if (xh_num) {
                $("#task_name").text('消耗金币');
                let t_idx = 0
                let tmr = setInterval(function () {
                    pkid.innerText = t_idx
                    if (t_idx >= Number(xh_num)) {
                        $("#task_name").text('完成');
                        clearInterval(tmr);
                        sfn2001()
                    }else{
                        $.post(huayuan_t+"/mfhy/plaza/buy.asp;?sid="+token_dan,{
                                type: '0',
                                id: "tzd29535zeb",
                                count: "999"
                            }
                        );
                        setTimeout(function(){
                            $.post(huayuan_t+"/mfhy/gbag/sell.asp;?sid="+token_dan,{
                                    modelId: "ulz8757ytv",
                                    count: "999"
                                }
                            );
                            t_idx++
                        }, 250)
                    }
                }, 500)
            }
        }
        // 新号初始化
        function sfn0001 () {
            let t_idx = 0
            let tmr = setInterval(function () {
                indexid.innerText = t_idx
                if (t_idx >= hs_t_l.length) {
                    clearInterval(tmr);
                    $("#task_name").text('完成');
                    sfn2001()
                }else{
                    let token = hs_t_l[t_idx]
                    // 步骤1：买一张七天一键卡
                    $.post(huayuan_t+"/mfhy/plaza/buy.asp;?sid="+token+"&",{
                            type: '1',
                            subType: '0',
                            id: 'ov_9038sxv',
                            count: '1'
                        }
                    );
                    setTimeout(() => {
                        ifr.src = huayuan_t+"/mfhy/garden/openOk.asp;?sid="+token+"&toolId=4037";
                    }, 500);
                    // 步骤2：升级两次花盆
                    setTimeout(() => {
                        ifr.src = huayuan_t+"/mfhy/pot/addPot.asp;?sid="+ token + "&type=0";
                    }, 1000);
                    setTimeout(() => {
                        ifr.src = huayuan_t+"/mfhy/pot/addPot.asp;?sid="+ token + "&type=0";
                        t_idx++
                    }, 1500);
                }
            }, 2100)
        }
        // 批量兑换花朵
        function sfn50001(id) {
            let hecheng_num = prompt("请输入兑换数量","");
            if (hecheng_num) {
                $("#task_name").text('批量合花');
                let t_idx = 1
                let tmr = setInterval(function () {
                    pkid.innerText = t_idx
                    if (t_idx >= hs_t_l.length) {
                        $("#task_name").text('完成');
                        clearInterval(tmr);
                        sfn2001()
                    }else{
                        let token = hs_t_l[t_idx]
                        $.post(huayuan_t+"/mfhy/gmixt/make.asp;?sid="+token,{
                                count: hecheng_num,
                                type: id == 'roy524aer' ? '1' : '0',
                                id: id,
                            }
                        );
                        t_idx++
                    }
                }, task_time_r)
            }
        }
        // 批量买绣球种子
        function sfn50002(id) {
            let hecheng_num = prompt("请输入购买种子数量","");
            if (hecheng_num) {
                $("#task_name").text('批量购买种子');
                let t_idx = 1
                let tmr = setInterval(function () {
                    pkid.innerText = t_idx
                    if (t_idx >= hs_t_l.length) {
                        $("#task_name").text('完成');
                        clearInterval(tmr);
                        sfn2001()
                    }else{
                        let token = hs_t_l[t_idx]
                        $.post(huayuan_t+"/mfhy/plaza/buy.asp;?sid="+token+"&",{
                                type: '0',
                                subType: '0',
                                id: id,
                                count: hecheng_num
                            }
                        );
                        t_idx++
                    }
                }, task_time_r)
            }
        }
        // 批量扔魔矿石和芙蓉石
        function sfn50003() {
            let hecheng_num = prompt("请输入扔掉的数量","");
            if (hecheng_num) {
                $("#task_name").text('批量扔魔矿石和芙蓉石');
                let t_idx = 1
                let tmr = setInterval(function () {
                    pkid.innerText = t_idx
                    if (t_idx >= hs_t_l.length) {
                        $("#task_name").text('完成');
                        clearInterval(tmr);
                        sfn2001()
                    }else{
                        let token = hs_t_l[t_idx]
                        $.post(huayuan_t+"/mfhy/gbag/sell.asp;?sid="+token,{
                                modelId: 'kgv8030knt',
                                count: hecheng_num
                            }
                        );
                        setTimeout(() => {
                            $.post(huayuan_t+"/mfhy/gbag/sell.asp;?sid="+token,{
                                    modelId: 'gj987307b5',
                                    count: hecheng_num
                                }
                            );
                            t_idx++
                        }, task_time_r)
                    }
                }, task_time_r * 2)
            }
        }
        // 批量扔金绣球和粉团花
        function sfn50004() {
            let hecheng_num = prompt("请输入扔掉的数量","");
            if (hecheng_num) {
                $("#task_name").text('批量扔金绣球和粉团花');
                let t_idx = 1
                let tmr = setInterval(function () {
                    pkid.innerText = t_idx
                    if (t_idx >= hs_t_l.length) {
                        $("#task_name").text('完成');
                        clearInterval(tmr);
                        sfn2001()
                    }else{
                        let token = hs_t_l[t_idx]
                        $.post(huayuan_t+"/mfhy/fhouse/sell.asp;?sid="+token,{
                                modelId: 'w6p5815516u',
                                count: hecheng_num
                            }
                        );
                        setTimeout(() => {
                            $.post(huayuan_t+"/mfhy/fhouse/sell.asp;?sid="+token,{
                                    modelId: 'bae51155dde',
                                    count: hecheng_num
                                }
                            );
                            t_idx++
                        }, task_time_r)
                    }
                }, task_time_r * 2)
            }
        }
        // 批量扔鸢尾花朵
        function sfn50006() {
            let hecheng_num = prompt("请输入扔掉的数量","");
            if (hecheng_num) {
                $("#task_name").text('批量扔鸢尾花朵');
                let t_idx = 1
                let tmr = setInterval(function () {
                    pkid.innerText = t_idx
                    if (t_idx >= hs_t_l.length) {
                        $("#task_name").text('完成');
                        clearInterval(tmr);
                        sfn2001()
                    }else{
                        let token = hs_t_l[t_idx]
                        $.post(huayuan_t+"/mfhy/fhouse/sell.asp;?sid="+token,{
                                modelId: 'f7r23836xkn',
                                count: hecheng_num
                            }
                        );
                        setTimeout(() => {
                            $.post(huayuan_t+"/mfhy/fhouse/sell.asp;?sid="+token,{
                                    modelId: 'sre43836yau',
                                    count: hecheng_num
                                }
                            );
                        }, task_time_r)
                        setTimeout(() => {
                            $.post(huayuan_t+"/mfhy/fhouse/sell.asp;?sid="+token,{
                                    modelId: '76x13836c3r',
                                    count: hecheng_num
                                }
                            );
                        }, task_time_r*2)
                        setTimeout(() => {
                            $.post(huayuan_t+"/mfhy/fhouse/sell.asp;?sid="+token,{
                                    modelId: 'oc193836abp',
                                    count: hecheng_num
                                }
                            );
                            t_idx++
                        }, task_time_r*3)
                    }
                }, task_time_r * 4)
            }
        }
        // 批量扔单花朵
        function sfn50007(modelId) {
            let hecheng_num = prompt("请输入扔掉的数量","");
            if (hecheng_num) {
                $("#task_name").text('批量扔单花朵');
                let t_idx = 1
                let tmr = setInterval(function () {
                    pkid.innerText = t_idx
                    if (t_idx >= hs_t_l.length) {
                        $("#task_name").text('完成');
                        clearInterval(tmr);
                        sfn2001()
                    }else{
                        let token = hs_t_l[t_idx]
                        $.post(huayuan_t+"/mfhy/fhouse/sell.asp;?sid="+token,{
                                modelId: modelId,
                                count: hecheng_num
                            }
                        );
                        t_idx++
                    }
                }, task_time_r)
            }
        }
        // 批量扔单花朵
        function sfn50008() {
            const zxhList = {
                "ss17445de0": "kfz57445z7p",
                "8pq4625xoa": "7c5546250ol",
                "qug06252ys": "7i550625sgn",
                "xpi4425qan": "6sy54425dsm",
                "zil0425ykr": "7kc50425sk2",
                "j_g4225h4p": "8r054225klq",
                "jq502254ci": "g5g50225ndc",
                "s4i4925mgz": "4ua54925bvg",
                "1qe79257zr": "m3d57925ee1",
                "4ef2125kud": "rmf52125cel",
                "ma47125h9v": "co_57125jdu",
                "jb3282501q": "l_p52825gba",
                "gpj7825elr": "cky57825l24",
                "x2a2025obu": "3je520251f0",
                "eb87025gvx": "c1x57025f_q",
                "faz27252ya": "eh952725se2",
                "ziv7725p5a": "l5g57725njp",
                "84c2525qy0": "4lv52525xjd",
                "0sf7525_e7": "40x575258g5",
                "ml8232549d": "0cj52325aj1",
                "qyh7325h24": "65l573250lv",
                "ea1269552y": "pze526952u6",
                "a3f7695sah": "mmg576950m2",
                "ms52495nri": "9lm52495hnh",
            }
            let song_num = prompt("请输入需要丢弃的次数","");
            if (song_num) {
                $("#task_name").text('批量扔星座花朵');
                let t_idx = 0
                let tmr = setInterval(function () {
                    indexid.innerText = t_idx
                    if (t_idx >= Number(song_num)) {
                        $("#task_name").text('完成');
                        clearInterval(tmr);
                    }else{
                        $.post(huayuan_t+"/mfhy/fhouse/sell.asp;?sid="+token_dan,{
                                modelId: zxhList[is_shua_one_id],
                                count: 999
                            }
                        );
                        t_idx++;
                    }
                }, task_time_r)
            }
        }
        // 批量扔麻线球和鱼鳞石
        function sfn50005(id) {
            let hecheng_num = prompt("请输入扔掉的数量","");
            if (hecheng_num) {
                $("#task_name").text('批量扔麻线球和鱼鳞石');
                let t_idx = 1
                let tmr = setInterval(function () {
                    pkid.innerText = t_idx
                    if (t_idx >= hs_t_l.length) {
                        $("#task_name").text('完成');
                        clearInterval(tmr);
                        sfn2001()
                    }else{
                        let token = hs_t_l[t_idx]
                        $.post(huayuan_t+"/mfhy/gbag/sell.asp;?sid="+token,{
                                modelId: id,
                                count: hecheng_num
                            }
                        );
                        t_idx++;
                    }
                }, task_time_r)
            }
        }
        // 临时功能
        function sfn0002 () {
            $("#task_name").text('开始任务');
            // sfn70082() // 临时兑换
            // sfn40041() // 清空花朵
            sfn80032() // 手动赠送
            // sfn800381(true); // 2021劳动节画册兑换
            // sfn50005('cj35338hd5') // 批量扔染色剂
            // sfn50005('2m81730fst') // 批量扔鱼鳞石
            // sfn50005('95h03302u1') // 批量扔麻线球
            // sfn50003() // 批量扔魔矿石和芙蓉石
            // sfn50005('fzz0730riu') // 批量孔雀石
            // sfn50004() // 批量扔金绣球和粉团花
            // sfn50006() // 批量扔鸢尾花
            // sfn50007('j3o50155xc5') // 批量扔银绣球
            // sfn50001('l2r2671kf') // 批量合银绣球
            // sfn50001('vnu4671yd') // 批量合金绣球
            // sfn50001('xly517pye') // 批量合银鸢尾
            // sfn50001('e5_717t4k') // 批量合金鸢尾
            // sfn50001('roy524aer') // 批量合神树种
            // sfn50002('11x71556kg') // 批量买绣球种子
            return
            // let contAll = prompt("请输入扔掉的数量","");
            // $.post(huayuan_t+"/mfhy/plaza/buy.asp;?sid="+token_dan+"&",{
            //         type: '0',
            //         subType: '0',
            //         id: 'guo773537p',
            //         count: '300'
            //     }
            // );
            // setTimeout(() => {
            //     $.post(huayuan_t+"/mfhy/plaza/buy.asp;?sid="+token_dan+"&",{
            //             type: '0',
            //             subType: '0',
            //             id: '5c853379pk',
            //             count: '130'
            //         }
            //     );
            //     t_idx++
            // }, 500);
            // setTimeout(() => {
            //     sfn2011()
            // }, 700);
            // return
            // 升三次盆
            // ifr.src = huayuan_t+"/mfhy/pot/okdooper.asp;?sid="+ token_dan;
            // sfn00021(token_dan, token_idx)
            // setTimeout(() => {
            //     sfn00021(token_dan, token_idx)
            // }, 12000);
            // setTimeout(() => {
            //     sfn00021(token_dan, token_idx)
            // }, 24000);
            // setTimeout(() => {
            //     sfn00021(token_dan, token_idx)
            // }, 36000);
            // setTimeout(() => {
            //     sfn00021(token_dan, token_idx)
            // }, 48000);
            // return
            let t_idx = 0
            let tmr = setInterval(function () {
                pkid.innerText = t_idx
                if (t_idx >= hs_t_l.length) {
                    $("#task_name").text('完成');
                    clearInterval(tmr);
                    sfn2001()
                }else{
                    let token = hs_t_l[t_idx]
                    // 使用天数卡
                    // 15 - http://123.207.116.159:8098/mfhy/garden/openOk.asp;jsessionid=817B78876AB3E2463D4F32CC93481E03?sid=1525161_37e5b93570de9ce4e1d6&toolId=4038
                    // 7 - http://123.207.116.159:8098/mfhy/garden/openOk.asp;jsessionid=817B78876AB3E2463D4F32CC93481E03?sid=1525161_37e5b93570de9ce4e1d6&toolId=4037
                    // 3 - http://123.207.116.159:8098/mfhy/garden/openOk.asp;jsessionid=817B78876AB3E2463D4F32CC93481E03?sid=1525161_37e5b93570de9ce4e1d6&toolId=4036
                    // 1 - http://123.207.116.159:8098/mfhy/garden/openOk.asp;jsessionid=817B78876AB3E2463D4F32CC93481E03?sid=1525161_37e5b93570de9ce4e1d6&toolId=4035
                    // ifr.src = huayuan_t+"/mfhy/garden/openOk.asp;?sid="+ token +"&toolId=4035";
                    // t_idx++
                    // setTimeout(() => {
                    //     ifr.src = huayuan_t+"/mfhy/garden/openOk.asp;?sid="+ token +"&toolId=4035";
                    //     t_idx++
                    // }, 75);
                    // setTimeout(() => {
                    //     ifr.src = huayuan_t+"/mfhy/garden/openOk.asp;?sid="+ token +"&toolId=4036";
                    // }, 200);
                    // setTimeout(() => {
                    //     ifr.src = huayuan_t+"/mfhy/garden/openOk.asp;?sid="+ token +"&toolId=4035";
                    //     t_idx++
                    // }, 300);

                    // 使用道具-批量
                    // 2bjiuktnolwu_tnehcehvjb - 龙葵箱子
                    // tclihseuqtnokwu_tnehceh6f8 - 孔雀石箱子
                    // 8unamaywu_tnehcehm1w - 亚麻箱子
                    // kl3oacuixnahwu_tnehceh_g3 - 含羞草
                    // ifr.src = huayuan_t+"/mfhy/gbag/openBox.asp;?sid="+token+"&type=1&modelId=kl3oacuixnahwu_tnehceh_g3&count=10";
                    // // ifr.src = huayuan_t+"/mfhy/roll/openRoll.asp;?sid="+ token +"&id=24&type=3";
                    // setTimeout(() => {
                    //     ifr.src = huayuan_t+"/mfhy/gbag/openBox.asp;?sid="+token+"&type=1&modelId=kl3oacuixnahwu_tnehceh_g3&count=10";
                    //     // ifr.src = huayuan_t+"/mfhy/roll/openRoll.asp;?sid="+ token +"&id=24&type=3";
                    // }, 300);
                    // setTimeout(() => {
                    //     ifr.src = huayuan_t+"/mfhy/gbag/openBox.asp;?sid="+token+"&type=1&modelId=kl3oacuixnahwu_tnehceh_g3&count=10";
                    //     // ifr.src = huayuan_t+"/mfhy/roll/openRoll.asp;?sid="+ token +"&id=24&type=3";
                    // }, 600);
                    // setTimeout(() => {
                    //     ifr.src = huayuan_t+"/mfhy/gbag/openBox.asp;?sid="+token+"&type=1&modelId=kl3oacuixnahwu_tnehceh_g3&count=10";
                    //     // ifr.src = huayuan_t+"/mfhy/roll/openRoll.asp;?sid="+ token +"&id=24&type=3";
                    // }, 900);
                    // setTimeout(() => {
                    //     ifr.src = huayuan_t+"/mfhy/gbag/openBox.asp;?sid="+token+"&type=1&modelId=kl3oacuixnahwu_tnehceh_g3&count=10";
                    //     // ifr.src = huayuan_t+"/mfhy/roll/openRoll.asp;?sid="+ token +"&id=24&type=3";
                    //     t_idx++
                    // }, 1200);
                    // setTimeout(() => {
                    //     ifr.src = huayuan_t+"/mfhy/roll/openRoll.asp;?sid="+ token +"&id=24&type=3";
                    // }, 1500);
                    // setTimeout(() => {
                    //     ifr.src = huayuan_t+"/mfhy/roll/openRoll.asp;?sid="+ token +"&id=24&type=3";
                    // }, 1800);
                    // setTimeout(() => {
                    //     ifr.src = huayuan_t+"/mfhy/roll/openRoll.asp;?sid="+ token +"&id=24&type=3";
                    // }, 2100);
                    // setTimeout(() => {
                    //     ifr.src = huayuan_t+"/mfhy/roll/openRoll.asp;?sid="+ token +"&id=24&type=3";
                    // }, 2400);
                    // setTimeout(() => {
                    //     ifr.src = huayuan_t+"/mfhy/roll/openRoll.asp;?sid="+ token +"&id=24&type=3";
                    //     t_idx++
                    // }, 2700);

                    // 选择播种
                    // ifr.src = huayuan_t+"/mfhy/pot/prepOkSeed.asp;?sid="+token+"&seedId=" + 'hvn03378cp'; // hvn03378cp金萍逢草
                    // setTimeout(function () {
                    //     ifr.src = huayuan_t+"/mfhy/pot/okSow.asp;?sid="+ token;
                    //     t_idx++
                    // }, 500)

                    // 单独对某个盆子施肥
                    // let potId1 = hs_h_l[t_idx].slice(13,14)
                    // let potId2 = hs_h_l[t_idx].slice(14,15)
                    // ifr.src = huayuan_t+"/mfhy/pot/urgeProd.asp;?sid="+ token +"&potId="+ potId1 + "&toolId=" + huafeiId1;
                    // setTimeout(() => {
                    //     ifr.src = huayuan_t+"/mfhy/pot/urgeProd.asp;?sid="+ token +"&potId="+ potId1 + "&toolId=" + huafeiId2;
                    // }, 500);
                    // setTimeout(() => {
                    //     ifr.src = huayuan_t+"/mfhy/pot/urgeProd.asp;?sid="+ token +"&potId="+ potId2 + "&toolId=" + huafeiId1;
                    // }, 1000);
                    // setTimeout(() => {
                    //     ifr.src = huayuan_t+"/mfhy/pot/urgeProd.asp;?sid="+ token +"&potId="+ potId2 + "&toolId=" + huafeiId2;
                    //     t_idx++
                    // }, 1500);

                    // 使用化肥
                    // ifr.src = huayuan_t+"/mfhy/gbag/openBox.asp;?sid="+ token + "&type=1&modelId=djqxobwoaixnauy0737y01&count=10";
                    // setTimeout(() => {
                        // ifr.src = huayuan_t+"/mfhy/gbag/openBox.asp;?sid="+ token + "&type=1&modelId=djqxobwoaixnauy0737y01&count=10";
                        // t_idx++
                    // }, 500);
                    // t_idx++
                    
                    // 添加花盆
                    // ifr.src = huayuan_t+"/mfhy/pot/addPot.asp;?sid="+ token + "&type=0";
                    // setTimeout(() => {
                    //     ifr.src = huayuan_t+"/mfhy/pot/addPot.asp;?sid="+ token + "&type=0";
                    // }, 500);
                    // setTimeout(() => {
                    //     ifr.src = huayuan_t+"/mfhy/pot/addPot.asp;?sid="+ token + "&type=0";
                    // }, 1000);
                    // setTimeout(() => {
                    //     ifr.src = huayuan_t+"/mfhy/pot/addPot.asp;?sid="+ token + "&type=1";
                    //     t_idx++
                    // }, 1500);

                    // 添加水盆
                    // ifr.src = huayuan_t+"/mfhy/pot/addPot.asp;?sid="+ token + "&type=1";
                    // t_idx++

                    // 加好友
                    // ifr.src = huayuan_t+"/mfhy/fri/sendFriReq.asp;?sid="+token+"&userId=1263966";
                    // t_idx++

                    // 查看所有好有（激活用）
                    // ifr.src = huayuan_t+"/mfhy/fri/index.asp;?sid=" + token;
                    // t_idx++

                    // 材料兑换
                    // $.post(huayuan_t+"/mfhy/gmixt/make.asp;?sid="+token,{
                    //         count: 700,
                    //         type: '1',
                    //         id: 'jrk55501v', // 蔓草换亚麻
                    //     }
                    // );
                    
                    // 丢材料
                    // tck0530ams -  红叶
                    // 2m81730fst -  鱼鳞石
                    // kgv8030knt - 魔矿石
                    // gj987307b5 - 芙蓉石
                    // cj35338hd5 - 染色剂
                    // nq74395zdj - 2021五一劳动花
                    // qnq9105jma - 南瓜
                    // 1us41518sh - 魔力圣泉
                    // j486151z3w - 星界护符
                    // rpc2151ixu - 星辰之力
                    // let modelId = '3t7oacuixnahwu_tnehcehi8g';
                    // let modelId = 'g8ytneftnohwu_tnehcehz9n';
                    // let modelId = 'tv2iuktnolwu_tnehcehoca'; // 龙葵
                    // let modelId = '1mpihseuqtnokwu_tnehcehy79'; // 孔雀石
                    // $.post(huayuan_t+"/mfhy/gbag/sell.asp;?sid="+token,{
                    //         modelId: 'rpc2151ixu',
                    //         count: contAll,
                    //     }
                    // );
                    // t_idx++

                    /**
                     */
                    // 丢弃种子
                    // let modelId = 'l12518755fd'
                    // let count = '10'
                    // $.post(huayuan_t+"/mfhy/gbag/sell.asp;?sid="+token,{
                    //         modelId: 'ubu4395n34',
                    //         count: count
                    //     }
                    // );
                    // setTimeout(() => {
                    //     $.post(huayuan_t+"/mfhy/gbag/sell.asp;?sid="+token,{
                    //             modelId: 'dkf91058u2',
                    //             count: count
                    //         }
                    //     );
                    //     t_idx++
                    // }, 300);

                    /**
                     */
                    // 丢弃花朵
                    // 'ji087735v5b', '3lo77735csc', 'oqz0773564w', '69t57735q77', // 百合花
                    // w6p5815516u - 金绣球
                    // bae51155dde - 粉团花
                    // 74i5073540z - 银百合
                    // 2l057337jfn - 银逢草
                    // let modelId = 'l12518755fd'
                    // let count = '999'
                    // $.post(huayuan_t+"/mfhy/fhouse/sell.asp;?sid="+token,{
                    //         modelId: 'w6p5815516u',
                    //         count: count
                    //     }
                    // );
                    // // t_idx++
                    // setTimeout(() => {
                        // $.post(huayuan_t+"/mfhy/fhouse/sell.asp;?sid="+token,{
                        //         modelId: '74i5073540z',
                        //         count: '999'
                        //     }
                        // );
                        // t_idx++
                    // }, 300);
                    // setTimeout(() => {
                    //     $.post(huayuan_t+"/mfhy/fhouse/sell.asp;?sid="+token,{
                    //             modelId: 'oqz0773564w',
                    //             count: count
                    //         }
                    //     );
                    // }, 600);
                    // setTimeout(() => {
                    //     $.post(huayuan_t+"/mfhy/fhouse/sell.asp;?sid="+token,{
                    //             modelId: '69t57735q77',
                    //             count: count
                    //         }
                    //     );
                    // }, 900);
                    // // 'duq05337g99', '8nc75337_tl', 'w_z553379tp', 'lxl85337joe', // 萍逢草
                    // setTimeout(() => {
                    //     $.post(huayuan_t+"/mfhy/fhouse/sell.asp;?sid="+token,{
                    //             modelId: 'duq05337g99',
                    //             count: count
                    //         }
                    //     );
                    // }, 1200);
                    // setTimeout(() => {
                    //     $.post(huayuan_t+"/mfhy/fhouse/sell.asp;?sid="+token,{
                    //             modelId: '8nc75337_tl',
                    //             count: count
                    //         }
                    //     );
                    // }, 1500);
                    // setTimeout(() => {
                    //     $.post(huayuan_t+"/mfhy/fhouse/sell.asp;?sid="+token,{
                    //             modelId: 'w_z553379tp',
                    //             count: count
                    //         }
                    //     );
                    // }, 1800);
                    // setTimeout(() => {
                    //     $.post(huayuan_t+"/mfhy/fhouse/sell.asp;?sid="+token,{
                    //             modelId: 'lxl85337joe',
                    //             count: count
                    //         }
                    //     );
                    //     t_idx++
                    // }, 2100);


                    // 买种子
                    // 梅花-6it933518b
                    // 桃花-aem63359kc
                    // 兰花-cy37535u47
                    // 樱花-va415350ux
                    // 百合-4ts7735f4d
                    // 萍逢草-5c853379pk
                    // 美人蕉-arb05376xu
                    // 绣球-11x71556kg
                    // 鸢尾-vj53137oth
                    // $.post(huayuan_t+"/mfhy/plaza/buy.asp;?sid="+token+"&",{
                    //         type: '0',
                    //         subType: '0',
                    //         id: '4ts7735f4d',
                    //         count: '999'
                    //     }
                    // );
                    // setTimeout(() => {
                        // $.post(huayuan_t+"/mfhy/plaza/buy.asp;?sid="+token+"&",{
                        //         type: '0',
                        //         subType: '0',
                        //         id: '11x71556kg',
                        //         count: '666'
                        //     }
                        // );
                        // t_idx++
                    // }, 300);
                    // if ((t_idx%2)===0) {
                        // $.post(huayuan_t+"/mfhy/plaza/buy.asp;?sid="+token+"&",{
                        //         type: '0',
                        //         subType: '0',
                        //         id: '11x71556kg',
                        //         count: '999'
                        //     }
                        // );
                        // t_idx++
                    // } else {
                    //     t_idx++
                    //     $.post(huayuan_t+"/mfhy/plaza/buy.asp;?sid="+token+"&",{
                    //             type: '0',
                    //             subType: '0',
                    //             id: '4ts7735f4d',
                    //             count: '999'
                    //         }
                    //     );
                    //     t_idx++
                    // }
                        // setTimeout(() => {
                        //     $.post(huayuan_t+"/mfhy/plaza/buy.asp;?sid="+token+"&",{
                        //             type: '0',
                        //             subType: '0',
                        //             id: 'vj53137oth',
                        //             count: '499'
                        //         }
                        //     );
                        //     t_idx++
                        // }, 500);
                    //     setTimeout(() => {
                    //         $.post(huayuan_t+"/mfhy/plaza/buy.asp;?sid="+token+"&",{
                    //                 type: '0',
                    //                 subType: '0',
                    //                 id: 'vj53137oth',
                    //                 count: '999'
                    //             }
                    //         );
                    //         t_idx++
                    //     }, 1000);
                    // }

                    //     // 买化肥
                    //     //     $.post(huayuan_t+"/mfhy/plaza/buy.asp;?sid="+token+"&",{
                    //     //             type: '1',
                    //     //             subType: '0',
                    //     //             id: 'ysn84535q8s',
                    //     //             count: '2'
                    //     //         }
                    //     //     );
                    //     //     setTimeout(() => {
                    //     //         ifr.src = huayuan_t+"/mfhy/gbag/openBox.asp;?sid="+ token + "&type=1&modelId=djqxobwoaixnauy0737y01&count=2";
                    //     //         t_idx++
                    //     //     }, 500);
                    // }
                    // 丢化肥
                    $.post(huayuan_t+"/mfhy/gbag/sell.asp;?sid="+token,{
                            count: '600',
                            // modelId: '8mm1538uoj', // 小小化肥
                            // modelId: 'xon5538gu1', // 小化肥
                            modelId: '2v17538fsk', // 中化肥
                        }
                    );
                    t_idx++

                    // 圣痕兑换
                     // i3l12_t1 - 大化肥春
                     // in334gbj - 大化肥夏
                     // ler14f7m - 大化肥秋
                     // 9k1365jw - 大化肥冬
                     // 4cz06027 - 黄金花剪
                    // $.post(huayuan_t+"/mfhy/gmixt/make.asp;?sid="+token,{
                    //         count: contAll,
                    //         type: '1',
                    //         id: '4cz06027',
                    //     }
                    // );
                    // t_idx++

                    // 合成花朵
                    // xly517pye - 银鸢尾
                    // 182040po3 - 银星光
                    // f5p470qzl - 银心花
                    // u2i110ghl - 银星火
                    // otb0fto - 银梅花
                    // hh18x5s - 银桃花
                    // 6hh945j - 银樱花
                    // v_b4ug0 - 银百合
                    // zqv758gs - 银萍逢草
                    // kna45h_k - 金百合
                    // 8tb77fyz - 金萍逢草
                    // vnu4671yd - 金绣球
                    // l2r2671kf - 银绣球

                    // let hecheng_num = '1'
                    // $.post(huayuan_t+"/mfhy/gmixt/make.asp;?sid="+token,{
                    //         count: hecheng_num,
                    //         type: '0',
                    //         id: 'v_b4ug0',
                    //     }
                    // );
                    // // // t_idx++
                    // setTimeout(() => {
                        // $.post(huayuan_t+"/mfhy/gmixt/make.asp;?sid="+token,{
                        //         count: hecheng_num,
                        //         type: '0',
                        //         id: 'xly517pye',
                        //     }
                        // );
                        // t_idx++
                    // }, 300);
                    // setTimeout(() => {
                    //     $.post(huayuan_t+"/mfhy/gmixt/make.asp;?sid="+token,{
                    //             count: hecheng_num,
                    //             type: '0',
                    //             id: 'u2i110ghl',
                    //         }
                    //     );
                    //     // t_idx++
                    // }, 1000);
                    // setTimeout(() => {
                    //     $.post(huayuan_t+"/mfhy/gmixt/make.asp;?sid="+token,{
                    //             count: hecheng_num,
                    //             type: '0',
                    //             id: '182040po3',
                    //         }
                    //     );
                    //     t_idx++
                    // }, 1500);
                    // setTimeout(() => {
                    //     $.post(huayuan_t+"/mfhy/gmixt/make.asp;?sid="+token,{
                    //             count: hecheng_num,
                    //             type: '0',
                    //             id: 'v_b4ug0',
                    //         }
                    //     );
                    //     t_idx++;
                    // }, 1500);
                    // setTimeout(() => {
                    //     $.post(huayuan_t+"/mfhy/gmixt/make.asp;?sid="+token,{
                    //             count: hecheng_num,
                    //             type: '0',
                    //             id: 'hh18x5s',
                    //         }
                    //     );
                    //     t_idx++;
                    // }, 2000);

                    // 升级花架
                    // ifr.src = huayuan_t+"/mfhy/rack/upgradeRack.asp;?sid="+ token +"&index=0";
                    // setTimeout(function () {
                    //     ifr.src = huayuan_t+"/mfhy/rack/upgradeRack.asp;?sid="+ token +"&index=1";
                    // }, 500)
                    // setTimeout(function () {
                    //     ifr.src = huayuan_t+"/mfhy/rack/upgradeRack.asp;?sid="+ token +"&index=2";
                    //     t_idx++;
                    // }, 1000)
                    // setTimeout(function () {
                    //     ifr.src = huayuan_t+"/mfhy/rack/upgradeRack.asp;?sid="+ token +"&index=0";
                    // }, 1500)
                    // setTimeout(function () {
                    //     ifr.src = huayuan_t+"/mfhy/rack/upgradeRack.asp;?sid="+ token +"&index=1";
                    // }, 2000)
                    // setTimeout(function () {
                    //     ifr.src = huayuan_t+"/mfhy/rack/upgradeRack.asp;?sid="+ token +"&index=2";
                    //     t_idx++;
                    // }, 2500)

                    // 升级花盆-12000
                    // ifr.src = huayuan_t+"/mfhy/pot/okdooper.asp;?sid="+ token; // 先收花
                    // sfn00021(token, t_idx)
                    // t_idx++

                    // 批量染色-318-白色绣球
                    // sfn0008(token, '318', t_idx)
                    // t_idx++
                    ////// --task_time_r * 18
                }
            }, 150)
        }
        
        // 升级花盆（轮流）
        function sfn00021 (token, index) {
            $("#task_name").text('升级花盆单');
            let t_idx = 0
            let p_l = hs_h_l[index].slice(0,14)//.reverse()
            // let p_l = hs_h_l[index].slice(14)
            // let p_l = hs_h_l[index].reverse()
            let tmr = setInterval(function () {
                if (t_idx >= p_l.length) {
                    clearInterval(tmr);
                    $("#task_name").text('完成');
                }else{
                    indexid.innerText = t_idx;
                    ifr.src = huayuan_t+"/mfhy/pot/urgeStep.asp;?sid="+ token +"&potId="+ p_l[t_idx];
                    t_idx++;
                }
            }, 300)
        }
        // 临时功能2-喂化肥
        function sfn0003 () {
            let typelist = prompt("请输入范围(如单花盆大化肥：1.4，1:花盆，2:水盆，3:全盆","");
            if (typelist) {
                let typeId = typelist.split('.')[0];
                let hfId = typelist.split('.')[1];
                let huafeiId = huafeiId1;
                let text = "开始批量喂小小化肥";
                if (hfId == 1) {
                    huafeiId = huafeiId1;
                    text = "开始批量喂小小化肥";
                } else if (hfId == 2) {
                    huafeiId = huafeiId2;
                    text = "开始批量喂小化肥";
                } else if (hfId == 3) {
                    huafeiId = huafeiId3;
                    text = "开始批量喂中化肥";
                } else if (hfId == 4) {
                    huafeiId = huafeiId4;
                    text = "开始批量喂大化肥";
                }
                let t_idx = 1;
                let a_time = 17 * task_time;
                if (typeId == 1) {
                    a_time = 17 * task_time
                } else if (typeId == 2) {
                    a_time = 10 * task_time
                } else if (typeId == 3) {
                    a_time = 25 * task_time
                }
                $("#task_name").text(text);
                let tmr = setInterval(function () {
                    pkid.innerText = t_idx
                    if (t_idx >= hs_t_l.length) {
                        clearInterval(tmr);
                        $("#task_name").text('完成');
                    }else{
                        let token = hs_t_l[t_idx];
                        let task_index2 = 0;
                        let p_l = hs_h_l[t_idx].slice(0,14) // 花盆
                        if (typeId == 1) {
                            p_l = hs_h_l[t_idx].slice(0,14) // 花盆
                        } else if (typeId == 2) {
                            p_l = hs_h_l[t_idx].slice(14) // 水盆
                        } else if (typeId == 3) {
                            p_l = hs_h_l[t_idx]
                        }
                        let timer2 = setInterval(function () {
                            if (task_index2 >= p_l.length) {
                                clearInterval(timer2);
                            }else{
                                indexid.innerText = task_index2;
                                ifr.src = huayuan_t+"/mfhy/pot/urgeProd.asp;?sid="+ token +"&potId="+ p_l[task_index2] + "&toolId=" + huafeiId;
                                task_index2++;
                            }
                        }, task_time)
                        t_idx++;
                    }
                }, a_time)
            }
        }
        // 一键注册5个号
        function sfn0004 (isSet) {
            let hs_zhuce_index = Number(localStorage.getItem('hs_zhuce_index') || '107')
            if (isSet) {
                let setIndex = prompt("请输入注册序号(100+)","");
                if (setIndex) {
                    hs_zhuce_index = Number(setIndex)
                }
            }
            $.post("http://www.5iwapgame.com/home/registValidate.go",{
                    nick: '各显神通' + hs_zhuce_index,
                    account: 'gxst' + hs_zhuce_index,
                    password: 'dg110929',
                    pwcopy: 'dg110929',
                    phone: '',
                }
            );
            setTimeout(() => {
                $.post("http://www.5iwapgame.com/home/registValidate.go",{
                        nick: '各显神通' + (hs_zhuce_index+1),
                        account: 'gxst' + (hs_zhuce_index+1),
                        password: 'dg110929',
                        pwcopy: 'dg110929',
                        phone: '',
                    }
                );
                if (!isSet) {
                    sfn00075(666);
                }
            }, 1250);
            if (isSet) {
                setTimeout(() => {
                    $.post("http://www.5iwapgame.com/home/registValidate.go",{
                            nick: '各显神通' + (hs_zhuce_index+2),
                            account: 'gxst' + (hs_zhuce_index+2),
                            password: 'dg110929',
                            pwcopy: 'dg110929',
                            phone: '',
                        }
                    );
                }, 2550);
                setTimeout(() => {
                    $.post("http://www.5iwapgame.com/home/registValidate.go",{
                            nick: '各显神通' + (hs_zhuce_index+3),
                            account: 'gxst' + (hs_zhuce_index+3),
                            password: 'dg110929',
                            pwcopy: 'dg110929',
                            phone: '',
                        }
                    );
                }, 3850);
                setTimeout(() => {
                    $.post("http://www.5iwapgame.com/home/registValidate.go",{
                            nick: '各显神通' + (hs_zhuce_index+4),
                            account: 'gxst' + (hs_zhuce_index+4),
                            password: 'dg110929',
                            pwcopy: 'dg110929',
                            phone: '',
                        }
                    );
                    localStorage.setItem('hs_zhuce_index', (hs_zhuce_index+5));
                    localStorage.setItem('hs_isDayMask',2);
                    setTimeout(function() {
                        window.location.href = './hs2.html';
                    }, 30);
                }, 5000);
            }
        }
        /**星座花系列操作*/
        // 星座花兑换
        function sfn00001 (token, tms, isload) {
            let task_token = token || token_dan;
            let t_time = tms || task_time_r;
            let xingzuoList = ['v11234oys','5ov554z5k','pxd154vvv','mej65498c','v42074s9q','91v274iz4','wkz504k8w','0yl1048n4','9c6604kbd','iec084z08','8tq284jkg','d5t514_4i','etq114qeu','vk0614t2o','12a094xi4','im5294416','ae_724a4q','5u1924vab','1u7344ek7','qke8442s6','tf0444tnh','wk1764f_2','eyd964430','jzu336ad5'];
            $("#task_name").text('开始换星座花');
            let t_idx = 0;
            shuaMax.innerText = '次数:' + xingzuoList.length;
            let tmr = setInterval(function () {
                pkid.innerText = t_idx
                if (t_idx >= xingzuoList.length) {
                    clearInterval(tmr);
                    if (isload == 666) {
                        let hs_zhuce_index = Number(localStorage.getItem('hs_zhuce_index') || '107')
                        localStorage.setItem('hs_zhuce_index', (hs_zhuce_index+2));
                        localStorage.setItem('hs_isDayMask',2);
                        setTimeout(function() {
                            window.location.href = './hs2.html';
                        }, 30);
                    } else {
                        sfn2011();
                        $("#task_name").text('完成');
                    }
                }else{
                    $.post(huayuan_t+"/mfhy/gmixt/make.asp;?sid="+task_token,{
                            count: '30',
                            type: '0',
                            id: xingzuoList[t_idx],
                        }
                    );
                    t_idx++;
                }
            }, t_time)
        }
    </script>
</body>

</html>